Whenever Autoscaling server terminates it leaves its alarms which later goes into insufficient state. This blog will guide you how to delete all those alarms of autoscaling server when it terminates. In order to do so, I’ve written a small shell script, I’m assuming that you already have aws cli installed if not you can […]
Typically there could be some scenario , when a scale in event occurs and Auto Scaling determines that an instance is no longer necessary, it immediately puts the instance into Terminating state. The instance remains in this state until the instance fully terminates. By default, We cannot connect to an instance that is terminating Recently aws has […]
Monitoring lies at very heart of the Production application. Its absolutely necessary that each and every aspect of application is monitored be it application itself any helper services that run on the server like SSH, FTP, NFS etc and the server resources like CPU usage, disk usage. Even the slightest deviation from the regular usage […]
We all love notifications of android applications and its notification bar. But it would be much better if we can show the user the rich notifications instead of those boring text notifications. But it is not simple task that it sounds to be. The problem is, when we try to display image with text then […]
Sometimes we get the requirement to change the key-pair for some security reasons. In this article, we will be changing the key pair of running EC2 instances. Steps: 1. Create a new key pair from AWS Console. 2. Generate Public key from newly created key pair ( Private Key ). 3. Paste the generated public […]
Recently I was writing unit tests for a filter in my project, which makes use of a service. Normally mocking using ‘metaclass’ and ‘demand’ doesn’t work for services in filter, because filters don’t let mock the service methods like we do in other classes or controller. Suppose we have a filter like: [java] class SomeFilters […]
I loved the way node package manager loads and manage the JS dependencies, thought of doing that in my grails project as well. Until now all our third party JS files used to live with our source code. So loading them the way Maven loads Jar dependencies for us is what we are going to […]
Managing multimedia content to any large scale website is much complicated if the content is dynamic and needs to be changed at regular intervals. Integration of YouTube with CQ5 is one of the use case which can help authors to manage the channel specific videos for particular page related with particular channel. Below is the […]
In Directives there is one more attribute named : “require” , which gives us the liberty to include another directive and inject its controller as the fourth argument to the linking function. It accept both string as well as array type. In case of array, the controllers are included in the given order. There are some prefixes, when applied before controller name, provides different functionality.