Mobil Mewah

Salah satu sumber Inspirasi.

Monday, 23 July 2018

keepalived issue with iptables

When talking about High Availability services, we can use keepalived to do a automatic failover between 2 host. Keepalived is working like a charm by using a virtual ip. 1 Master elected for normal operation, and others as backup. When master have issue, backup will take over the services. Issue arise with configuration, where there is iptables entry to drop any vrrp traffic type. This was issue with the configuration. To mitigate this, look for the config of keepalived.conf . change entry from : vrrp_strict  to become : vrrp_accept This entry will make keepalived will not use iptables. Keepalived version we use was V1....

Monday, 2 July 2018

Environment variable with ChicagoBoss

On Chicagoboss I need to have some configuration variable set in the main configuration. Just like my experience with Django framework on settings.py In Chicagoboss, we can do it also and add our on config variable in the configuration file, which are boss.config. These below are the part of the config we can custom : %% APPLICATION CONFIGURATIONS %% domains - A list of domains to serve the application on %% static_prefix - The URL prefix of static assets %% doc_prefix - The URL prefix for developer documentation { myapp, [ {path, "../myapp"}, {base_url, "/"}, {dummy, true} ]} So we can add the variable for our application with...

Page 1 of 2512345Next
Twitter Delicious Facebook Digg Stumbleupon Favorites More