Top ELB health and performance metrics

Part 1 – https://www.datadoghq.com/blog/top-elb-health-and-performance-metrics Request count Surge queue length and spillover count ELB 5xx errors Backend instances health status Backend latency Part 2 – https://www.datadoghq.com/blog/how-to-collect-aws-elb-metrics Part 3 – https://www.datadoghq.com/blog/monitor-elb-performance-with-datadog

Clear all websphere portal dynacache (distributedmap) with one click

http://www-10.lotus.com/ldd/portalwiki.nsf/dx/Clear_all_websphere_portal_dyna_caches_lprdistributedmaprpr_with_one_click Sample code to inject in cachemonitor We can clear all caches with single click by injecting the below small piece of code into the Cache Monitor JSP (WebSphere\wp_profile\installedApps\sivapcCell\Dynamic Cache Monitor.ear\CacheMonitor.war\selectInstance.jsp)   <form name=”clearAll” method=”get” action=”selectInstance.jsp”> <input type=”hidden” name=”clearAll” value=”true”>  <input type=”submit” value=”Clear All” class=”buttons”>  </form> <%  if (request.getParameter(“clearAll”) != null   && request.getParameter(“clearAll”).equals(“true”)) {…

How To Encrypt Tomcat 8 Connections with Apache or Nginx on Ubuntu 16.04

BOOKMARK LINK:  https://www.digitalocean.com/community/tutorials/how-to-encrypt-tomcat-8-connections-with-apache-or-nginx-on-ubuntu-16-04   sudo nano /etc/nginx/sites-available/default sudo nginx -t sudo systemctl restart nginx sudo systemctl restart tomcat sudo nano /opt/tomcat/conf/server.xml sudo ufw delete allow 8080

Install ansible to Redhat 7 Linux

1. Download epel release wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2. Install epel package ( uninstall old epel package if conflict occur) rpm -i epel-release-latest-7.noarch.rpm 3. Update yum sudo yum update 4. Install ansible sudo yum install ansible 5. Test ansible –version ansible localhost -m ping  

Apache redirect from non-www to www

APACHE 2.4 AND NEWER NON-WWW => WWW: RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ %{REQUEST_SCHEME}://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] WWW => NON-WWW: RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^ %{REQUEST_SCHEME}://%1%{REQUEST_URI} [R=301,L] APACHE 2.2 AND NEWER NON-WWW => WWW: RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST}…

Integrating AWS CodeCommit with Jenkins

https://aws.amazon.com/blogs/devops/integrating-aws-codecommit-with-jenkins/ 1. Create an IAM user name ‘jenkins’ 2. Save the access key ID and the secret key for jenkins user 3. Attach the managed policy named AWSCodeCommitPowerUser to the IAM user you created. 4. Configure the AWS CLI. cd ~jenkins sudo -u jenkins aws configure 5. Configure Git to use IAM credentials and an…

Install Jenkins on Amazon Linux EC2 Instance

1. Login to your Amazon Linux instance. 2. Become root using ‘sudo su -‘ command. 3. Update your repositories #yum update 4. Get Jenkins repository #wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo 5. Get Jenkins repository key   #rpm –import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key 6. Install Jenkins package  #yum install jenkins 7. Start Jenkins #service jenkins start 8. Start automatically at…