Showing posts with label is. Show all posts
Showing posts with label is. Show all posts

Saturday, 6 March 2021

CPU ideal is critical

 CPU ideal is critical in some cases, 

1. SM51 --> select correct instance --> select time column --> sort --> descending order.
                   copy and paste the running Work process info in to notepad for analysis.

2. Login to the putty, issue command: sar -u 


 

Friday, 31 July 2020

How to configure email alert in AWS for EC2 instance, if CPU load is above 90%


If cpu utilisation is above 90%. then the below configuration will trigger an email notification conveying the same.


Practical steps:                                                                                                                                                       

1. Login to AWS console.                                                                                                                 
2.Ensure that your in correct require DC.                                                                                         
3.Navigate to Services --> under Management & Governance -->Cloudwatch as shown below.


4. Then the below display will display.                                                                                                 


5.Click on Alarms now.                                                                                                                                


6. Click on Create Alarm as shown below.                                                                                                              

7.Now click on select metric as shown below.                                                                                       


8.Click on EC2 as shown below.                                                                                                                   


9. Click on Per-instance Metrices.                                                                                                                   

10. In the new browser tab collect the EC2 instance id info from  running instance page(Services -->EC2-->Running instance -->collect the instance id number for correct EC2 instance for which CPU mail alert is required.

11. Based on the instance id number from the above step & CPU utilization from Metric Name column, select the correct entry, by select the check box as shown below.

12.Enter Alarm details:                                                                                                                                     Name & Description are free text, generally used for better identification among other alarms.   
is >= 90      is the actually value that will trigger the mail. 
1 minute out of 1minute, if the CPU utilization is above 90% for 1 minute out of 1 minute then mail will trigger.

eg: can use 5 minutes out of 3 minutes.
                  10 minutes out of 5 minutes.


13.Enter the recipient mail id by clicking on the New list option as shown below.                                                                       


14.Enter the Alarm description again here in the below highlighted field & click on create                       alarm option available at the right side bottom of the screen.                                                          


15.Then screen prompt for the mail confirmation screen. Open receipt mail id, inbox and conform the acknowledge the AWS alerts.


16.By click on the conformation link in the mail. screen similar like below will appears.                                   

17. Click on View Alert now.                                                                                                                        

18. Optional steps: To check the functionality of Alert. open the putty session for the EC2 instance and execute the lines while true; do echo; done;
so that CPU utilization reached to 90% with in short time.

To open the putty session for EC2 instance:                                                                                                  how to establish putty connection to AWS EC2 instance using AWS console      



19. Hurrah!!! It working.                                                                                                                                        


Friday, 3 July 2020

What is EC2 -Elastic Compute Cloud, EC2 pricing Models, EC2 instances types

Amazon Elastic compute cloud(Amazon EC2) is a web service that provides resizable compute capacity in the cloud. Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change.

------------------------------------------------------------------------------
Few points from AWS pricing white paper:

  • No. of services increasing day by day.
  • Pay as per you use.
  • Pay less for more use.
  • even less pay, if you reserve the capacity.
--------------------------------------------------------------------------------

EC2 pricing Models:

1.on Demand: Allows you to pay a fixed rate by the hour (or by the second) with no commitment.
2.Reserved: Provides you with a capacity reservation, and offer a significant discount on the hourly                                 charge for an instance. Contract terms are 1 year or 3 year Terms.


              Reserved Pricing Types:

               1.Standard Reserved instances: these offer up to 75% off on demand instances. The more  you pay up front and the longer the contract, the greater the discount.                                                             
               2.Convertible Reserved instances: these offer up to 54% off on demand capability to change                 the attributes of the RI as long as the exchange results in the creation of Reserved instances of equal or greater value.                                                                                                                                                         
               3.Scheduled Reserved instances: These are available to launch within the time windows you                  reserve. This option allows you to match your capacity reservation to a predicable  recurring                    schedule that  only required a fraction of a day, a week, or  month.                                                                                                                                                                                                                                      

3.Spot: Enables you to bid  whatever price you want for instance capacity, providing  for even                         greater savings if your applications have flexible start and end times.
4.Dedicated Hosts: physical EC2 server dedicated for your use. Dedicated Hosts can help you reduce costs by allowing you to use your existing server-bound software licenses. 

  • can be purchased On-Demand(hourly).
  • Can be Purchased as a Reservation for up to 70% off the On-Demand price.
-----------------------------------------------------------------------------------------------------------------------------


EC2 instance Types:





Wednesday, 1 July 2020

CloudFront & Snowball

When an end user request a data from far distance server, to produce the output generally it is  time taken process. 

To overcome this situation, edge location concepts comes in to picture. When one end user request for some X info from far distance server. then the request X info will be available as cache in edge location. which will collect from far distance server & usually this collect of request for the first time will take time.  but if second end user request for the same X info, this time info will fetch from edge location which will enhance performance.
 




 What is Snowball in AWS?                                                                                                          

Snowball: it is used to export and import large amount of files from on- premise to AWS.

Tuesday, 4 February 2020

How exactly need to write shell scripts.

A script is a series of commands to execute particular task.
usually we will make use of scripts, while performing the routine tasks or regular tasks to make them automate.

Thursday, 15 August 2019

cat - concatenates and display files.

$ cat 

The cat command, concatenates and display files. this is the command you run to view the contents of a file.

ex:

% cat <hello.txt>

this is the first line
this is the second line


here hello.txt is the file name to be displayed.