Re: Auto Set unique.instanceId

2012-08-12 Thread Sam Hamilton
Many thanks Adrian! Sam On 11 Aug 2012, at 02:38, Adrian Crum adrian.c...@sandglass-software.com wrote: On 8/10/2012 7:33 PM, Jacques Le Roux wrote: From: Sam Hamilton s...@sh81.com Thanks for the tips. Scott I never knew that the jobs worked that way. Most things depends on DB in

Re: Auto Set unique.instanceId

2012-08-10 Thread Sam Hamilton
Thanks for the tips. Scott I never knew that the jobs worked that way. The use case I am working towards is where I can scale up and down the amount of OFBiz application servers running depending on load i.e. number of visitors on the website and I was trying to totally automate the scaling

Re: Auto Set unique.instanceId

2012-08-10 Thread Jacques Le Roux
From: Sam Hamilton s...@sh81.com Thanks for the tips. Scott I never knew that the jobs worked that way. Most things depends on DB in OFBiz, so are jobs. They are picked from DB to be run. The use case I am working towards is where I can scale up and down the amount of OFBiz application

Re: Auto Set unique.instanceId

2012-08-06 Thread Scott Gray
Keep in mind that if your machine IP address ever changes then any jobs queued or running at shutdown won't get picked up on restarting. Regards Scott On 6/08/2012, at 3:06 PM, Sam Hamilton wrote: Many thanks Jacques - off to do some testing! Cheers Sam On 4 Aug 2012, at 00:11,

Re: Auto Set unique.instanceId

2012-08-06 Thread adrian . crum
That would be the primary reason not to do things that way. Instead, you should keep server-specific patches in the checked-out project and have each server apply its patch after checkout. -Adrian Quoting Scott Gray scott.g...@hotwaxmedia.com: Keep in mind that if your machine IP address

Re: Auto Set unique.instanceId

2012-08-05 Thread Sam Hamilton
Many thanks Jacques - off to do some testing! Cheers Sam On 4 Aug 2012, at 00:11, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Hi Sam, I'm not sure to get it but you could use the IP address of each machine, look into startofbiz.sh: IPADDR=`/sbin/ifconfig eth0 | grep 'inet addr:'

Auto Set unique.instanceId

2012-08-03 Thread Sam Hamilton
Hey everyone! This is kinda a weird question but does anyone know a way to auto insert the machines hostname in the unique.instanceId variable in general.properties? I am asking as I am migrating over to AWS and trying to automate the build for a whole clustered stack so that if one of the

Re: Auto Set unique.instanceId

2012-08-03 Thread Jacques Le Roux
Hi Sam, I'm not sure to get it but you could use the IP address of each machine, look into startofbiz.sh: IPADDR=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` From that you could parse (ie remove the dot) and create an unique Id for each machine Also Googled