On Sep 19, 2013, at 11:54 PM, "Mitchell, Jermaine" <[email protected]> wrote:
> Running the synapse instances on the same host would be enough in the test > environment. But in terms of production environment the synapse instances > should be able to run on different hosts in future. Which approach could you > recommend considering best practices? How the synapse instances have to be > configured regarding to the different approaches? When running Synapse servers on the same machine, you can probably change the Synapse config directory location to point to the same directory. This can be done by modifying the synapse.sh file. Locate the following command and change accordingly: # synapse config SYNAPSE_XML=$SYNAPSE_HOME/repository/conf/synapse-config There are couple of approaches you can take to solve this problem in a distributed environment. You can use the Simple URL repository of Synapse to point to some shared HTTP server, and put your configuration files in the HTTP server. Or you can check-in your configurations to a SVN/Git repo and deploy a script in each host to periodically checkout/pull the configuration files. You can even write a Synapse task to do this. WSO2 ESB, which is based on Synapse provides a more elegant solution to this problem called deployment synchronizer [1]. Feel free to check that out too. Thanks, Hiranya [1] - http://docs.wso2.org/display/ESB470/Introduction+to+Deployment+Synchronizer > > Many thanks for your reply > > -----Ursprüngliche Nachricht----- > Von: Hiranya Jayathilaka [mailto:[email protected]] > Gesendet: Donnerstag, 19. September 2013 19:59 > An: [email protected] > Betreff: Re: Sharing Config Dir Between Several Synapse ESB's > > Are you running all Synapse instances on the same host? > > Thanks, > Hiranya > > On Sep 17, 2013, at 10:59 PM, "Mitchell, Jermaine" > <[email protected]> wrote: > >> Hi, >> >> We are running synapse by configuring xml files (endpoints/proxy-services) >> in the repository/conf/synapse-config directory. Because of failure safety >> we would like to run further synapse esb's and share the configuration >> directory between these esb's. Therefor the hot update feature of the >> configuration directory should still be working and affect all running >> synapse esb's. We already looked at the sample 11 but we can't get the >> desired behavior. Is there a way to get this done?? Grateful for any help. >> >> Thanks in advance. > > -- > Hiranya Jayathilaka > Mayhem Lab/RACE Lab; > Dept. of Computer Science, UCSB; http://cs.ucsb.edu > E-mail: [email protected]; Mobile: +1 (805) 895-7443 > Blog: http://techfeast-hiranya.blogspot.com > -- Hiranya Jayathilaka Mayhem Lab/RACE Lab; Dept. of Computer Science, UCSB; http://cs.ucsb.edu E-mail: [email protected]; Mobile: +1 (805) 895-7443 Blog: http://techfeast-hiranya.blogspot.com
