Hi All,
In UNIX servers we are switching from DR to PROD. After switching to DR
we need to update some configuration files which contains the server names.
Ex - If we switch to BCP we need to update BCP server name.
If we switch back to PROD we need to update PROD server name.
I have below options for performing above task.
- Create a link to PROD and BCP separately and just invoke the link.
- Update the config file with the server name.
May I know which option is better.
Kindly advise me for any better option
Question is a bit vague...
If you are referring to configuration files regarding your application, best approach would be to use one master configuration file which is relinked during DR and back.
So i guess, option one.
You can also use exported variable in your users $HOME folder .profile
For instance, you have a variable in your .profile export DR=1 and every other code ran on that machine references to it...
if DR=1 we are on DR will use these configuration files, else if DR=0 we are on primary site using other set of configuration.
Change would be only one number(DR 1 or 0), sourcing .profile after, and application start.
Regards
Peasant.