Auto Scaling is a service provided by Amazon Web Services which allows you to scale up or down your infrastructure horizontally by automatically adding or removing EC2 instances based on user-defined policies, health status checks or schedule. Lets start with some terminology before diving into specifics of auto scaling. Launch Configuration: – In launch config, you specify […]
I believe every System Admin working on Amazon Cloud might have faced a scenario where clients demand control of all the RDS databases via a single PHPMyAdmin host. Even I have been asked to do the same from one of my clients. Many of you might be already familiar with this process, but if you […]
While working with the new AWS CLI, you might come up with a use case in which complex values are required as an input. To simplify things a bit AWS CLI allows you to pass JSON as an input to argument. For example, to pass parameters to the –block-device-mappings parameter in the aws ec2 create-image command, you need to […]
EJS as the name implies embedded JavaScript, is a JavaScript templating library used to render html code along with JSON data in an easy and clean way. In a Node.JS application(here we are using an express application), you need to set the value of ‘view engine’ parameter to ‘ejs’. [js] var app = express(); app.set(‘view […]
If you are an operations guy and your development team has built some very cool application which is hosted on several web servers; the main concern is to find out the bugs and closely monitor the Application Error logs from different servers. Things that you can do in this case are: Give server access to […]
In my previous blog we discussed about “Readable Streams in Node.js”. Here we will be learning about the next part of stream which is, writable stream. Writable stream is used to write data to a specific destination. Basically its has two main method : write. end Write: writable.write(chunk,[encoding],[callback]) This method is used to write the […]
AngularJSFront End Development
While using AngularJS, we come across situation in which we want to display some data in certain format or some specific condition to be applied on the data. In this case, filters comes to rescue. We can define our custom filters and return filtered data in whichever way we want to display it. Lets learn […]
Large files can be really difficult to share and exchange. Most email service providers do not allow to share heavy files and most of the times we end up zipping them together for easy sharing. Zipping a file can be of great convenience for you and the end user both. Based on different use cases, […]
In my last blog, we discussed “Installing Oracle 11g on Cloud (EC2 instance RHEL/Centos 6.x) through command line“. Now it’s time for some Windows action. In this blog, we will discuss how we can “Enable multiple RDP sessions on Windows 2008 & 2012 R2”. Whenever we do an installation of Windows host on AWS Cloud, […]
Lets take an example where we need to point somedns.com, www.somedns.com to anotherdns.com using AWS’ Route53. Creating a record set to point www.somedns.com to anotherdns.com is easy, where www.somedns.com would be a CNAME type record with value “anotherdns.com”. But mapping somedns.com to anotherdns.com is not that trivial as R53 does not allow creation of a […]
Within Node.js development, streams are used to transfer data including requests to an HTTP server, opening a file, stdin, stdout, stderr etc. Streams can be readable, writable or both. We can connect the readable stream to a writable stream using the pipe method. All streams are instances of event emitters in node.js. We can get different […]
One of our clients has hosted his application on AWS and it uses EC2 instances behind the load balancer. The application provides an interface where users are suppose to upload files. For saving the same on centralize location we use S3 bucket and mount the same on the EC2 instances. Following are the step which […]