Why do not you try using "java-threads".


*Regards,*
*Laxmi Narayan Patel*
*MCA NIT Durgapur (2011-2014)*
*Mob:-    9741292048,8345847473    *

On Sun, Jul 24, 2016 at 6:50 PM, Jacob Barrett <[email protected]> wrote:

> The bash script example will start them simultaneously.
>
> On Sun, Jul 24, 2016 at 5:32 AM Gal Palmery <[email protected]>
> wrote:
>
>> Thanks John,
>>
>>
>>
>> I tried what you suggested, but still the commands inside the script are
>> executed one after the other, not simultaneously..
>>
>> Is there a way to make them all start at once?
>>
>>
>>
>> Thanks,
>>
>> Gal
>>
>>
>>
>> *From:* John Blum [mailto:[email protected]]
>> *Sent:* Sunday, July 24, 2016 13:34
>> *To:* [email protected]
>> *Subject:* Re: starting all servers simultaneously
>>
>>
>>
>> I should also add, that you could use Bash instead to add some
>> parallelism to the startup of all your servers...
>>
>>
>>
>> #!/bin/bash
>>
>>
>>
>> # add pre-processing logic, env. setup, whatever here
>>
>>
>>
>> gfsh -e "start server --name=Server1 ..." &
>>
>> gfsh -e "start server --name=Server2 ..." &
>>
>> ...
>>
>> gfsh -e "start server --name=ServerN ..." &
>>
>>
>>
>> # do whatever post processing you want here...
>>
>>
>>
>>
>>
>> You are only really limited by your imagination/creativity, :)
>>
>>
>>
>> Cheers,
>>
>> -j
>>
>>
>>
>> On Sun, Jul 24, 2016 at 3:30 AM, John Blum <[email protected]> wrote:
>>
>> It is easy to script it as a *Gfsh* shell script, for example...
>> start-my-servers.gfsh
>>
>>
>>
>> #!/bin/gfsh
>>
>>
>>
>> start server --name=Server1 --log-level=config ...
>>
>> start-server --name=Server2 --port=11235 ...
>>
>> start-server --name=Server3 ...
>>
>> ...
>>
>> start server --name=ServerN
>>
>>
>>
>> Then, from within *Gfsh*, you can...
>>
>>
>>
>> gfsh>run --file=/path/to/start-my-servers.gfsh
>>
>>
>>
>>
>>
>> File extension of the *Gfsh* shell script file does not matter but,
>> using .gfsh is descriptive.
>>
>>
>>
>> Hope this helps.
>>
>>
>>
>> -John
>>
>>
>>
>>
>>
>>
>>
>> On Sun, Jul 24, 2016 at 3:03 AM, Gal Palmery <[email protected]>
>> wrote:
>>
>> Hi,
>>
>>
>>
>> Is there a way to start all the geode servers that are configured in my
>> environment simultaneously and not one after the other?
>>
>> Startup takes a while when there is a large number of servers..
>>
>>
>>
>> Thanks,
>>
>> Gal
>>
>> This message and the information contained herein is proprietary and
>> confidential and subject to the Amdocs policy statement, you may review at
>> http://www.amdocs.com/email_disclaimer.asp
>>
>>
>>
>>
>>
>> --
>>
>> -John
>>
>> 503-504-8657
>>
>> john.blum10101 (skype)
>>
>>
>>
>>
>>
>> --
>>
>> -John
>>
>> 503-504-8657
>>
>> john.blum10101 (skype)
>>
>

Reply via email to