I have a process running on two hosts in Active/Standby mode. Process running on active machine is handling the traffic while process running on Standby machine is sitting idle.
We have a debugging mechanism in which logs are generated on local machine. When logging is enabled then process running on Active machine starts creating log files on local machine which leads to high CPU consumption due to expensive file write operation.
What I want is to transfer file write operation to standby machine i.e. when I enable logging then process running on active machine should not do any write operation, instead it should send log info to any process running on another machine which will create log file on standby machine. This way I will be able to save CPU on active machine even when logging is enabled .
Can anyone tell me how to do it ?