Home » Archives for Arpit Aggarwal

Author Archives: Arpit Aggarwal

Arpit is a Consultant at Xebia in India. He has been designing and building J2EE applications since more than 4 years. He is fond of Object Oriented and lover of Functional programming and his specialties are Java, J2EE, Scala, SOA, Cloud and Big Data Technologies.

Executing Cookbooks with Chef-Solo

Chef-Solo is an open source tool that runs locally and allows us to provision the guest machine using chef cookbooks without the complication of any chef client and server configuration. In this post, we will learn to execute a simple recipe which will create a file with some content inside /tmp directory using chef cookbook recipe. To start with, we will create ...

Read More »

Installing Puppet Modules – Librarian Puppet

Of course we can manually download the modules from Puppet Forge and install it but it becomes messy as you have to manually maintain the dependencies between the modules which definitely makes your repository bigger than necessary. Already I briefed about librarian-puppet  in my Blog At Xebia, still to provide little more context, it manages the Puppet modules your infrastructure depends on, ...

Read More »

Deploying Web Application on EC2 Instance – AWS

In this post, we will deploy spring web application on EC2 Amazon Linux AMI t2.micro instance following below steps: Step 1: Set up Amazon EC2 instance following set-up-amazon-ec2-instance. Step 2: Launch an EC2 instance following ec2-launch-linux-instance. Step 3: Upload .war file from local machine directory to EC2 user home (/home/ec2-user) directory using secure copy as follows: scp -i /Users/ArpitAggarwal/arpitaggarwal-key-pair.pem /Users/ArpitAggarwal/hello-spring/target/hello-spring.war ec2-user@ec2-54-218-30-7.us-west-2.compute.amazonaws.com:/home/ec2-user arpitaggarwal-key-pair.pem refers ...

Read More »

Configuring ELK stack to analyse Apache Tomcat logs

In this post, we will set up ElasticSearch, Logstash  and Kibana  to analyse Apache Tomcat server logs. Before setting up ELK stack, let’s have a brief about each. ElasticSearch Schema-less database that has powerful search capabilities and is easy to scale horizontally. Indexes every single field, aggregate and group the data. Logstash Written in Ruby and allows us to pipeline data ...

Read More »

Application Server as a Service in Unix

Running the Application Server as a service or daemon on the machine ensures that service restart automatically when the machine reboots and also provides the capability to start the server with a UNIX shell. In this post, we will create Weblogic  server as a service making it to start at machine reboot in few steps as follows: Step 1: Create ...

Read More »

Sticky Session Load Balancer with Nginx

Load balancer distributes incoming requests across multiple computing application servers. It aims to optimize resource use, maximize throughput, minimize response time, and avoid overload of any single resource. Nginx supports below load balancing mechanisms: Round-Robin — Requests to the application servers are distributed in a round-robin fashion. Least-Connected — Next request is assigned to the server with the least number of ...

Read More »