Comments (2)
@saikanuri This all depends on what you mean by "whenever there's a modification on the configuration". My understanding of a modification to the configuration is that the configuration file is modified and SIGHUP is sent to keepalived to make it reload its configuration (1). If on the other hand you mean if, for example, a VRRP instance changes from master to backup state, then you would like the JSON dumped (2), then that is another matter.
Re (1), since some outside agent (script or person) has triggered the configuration reload, then that agent could also send SIGJSON, and so there is no need to modify keepalived. I you mean something like (2) above, then you will need to define what events should trigger a re-write of the JSON file. However, you can probably use a notify_fifo
together with a notify_fifo_script
to be notified of relevant events, and then send a SIGJSON from the script.
The explanation for why a temporary file is created and then renamed to keepalived.json is given in a long(ish) comment in fopen_safe() in lib/utils.c. You can still monitor what is happening using inotify if you monitor the directory (default /tmp) using inotify, rather than monitoring the keepalived.json file itself.
from keepalived.
Closing due to no response for over 4 months.
from keepalived.
Related Issues (20)
- Reload segfaults if routes are defined HOT 2
- VIPs are not cleaned up when the keepaived process is killed. HOT 1
- Swap virtual_router_id of two vrrp instance(same interface) cause vip loss when reload HOT 2
- Notifications rejected by Exchange Online when From includes a display name HOT 1
- Can keepalived control the appending order of IPv6 protocol stack IPs? HOT 2
- Can the order of adding IPv6 to keepalived be controlled HOT 1
- healthchecker runtime error on check_data.h HOT 12
- How to implement two mutual exclusive VIPs HOT 4
- vip appears on both machines HOT 2
- Keepalived VIP not getting original source IP of the request to VIP HOT 3
- FIFO process seems to be killed prematurely before stop command terminates HOT 5
- keepalived on Wi-Fi - network delay HOT 4
- After restart NIC, keepalived can not become master state HOT 6
- What is the correct way to disable preempt for keepalived HOT 4
- vrrp_script; Cannot find script docker in path - disabling HOT 3
- The old virtual_ipaddress_excluded has not been deleted after reconfig vlan interface HOT 9
- keepalived Docker Image Build Failed HOT 8
- unable to recover from split brain problem HOT 6
- Configure virtual server only on master but not on backups HOT 5
- v2.2.8: nopreempt is configured, the notify_xxx method will not be triggered. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keepalived.