+Thomas

Its possible that the docker integration has not implemented the logic to honor 
this property yet.
________________________________________
From: Dheeren Bebortha <[email protected]>
Sent: Friday, July 24, 2015 11:07 AM
To: [email protected]
Subject: Re: Settings for slider component restart on failure

There was a typo in the name portion of “dockerContainers” while anonymizing 
the schema before I sent. Just to be accurate I updated and resending again. It 
is not working.
-Dheeren

>
> Here is the metainfo.json:
> {
>   "schemaVersion": "2.1",
>   "application": {
>         "name": "fakeapp”,
>       "autoStartOnFailure": "true",
>         "components": [{
>             "name": “MYFAKEAPP",
>             "type": "docker",
>         "autoStartOnFailure": "true",
>         "timeout" : "60",
>             "dockerContainers": [{
>                     "name" : “myfakeapp",
>                     "image": “docker.oraclecorp.com/myfakeapp:6.6 
> <http://docker.oraclecorp.com/myfakeapp:6.6>",
>         "autoStartOnFailure": "true",
>                     "commandPath": "/usr/bin/docker -H tcp://127.0.0.1:4243 
> <tcp://127.0.0.1:4243>",
>                     "ports": [{
>                         "containerPort": "7003",
>                         "hostPort":"7003"
>                      }]
>               }]
>         }]
>   }
> }
>
> -Dheeren
>
>> On Jul 24, 2015, at 7:47 AM, Sumit Mohanty <[email protected] 
>> <mailto:[email protected]>> wrote:
>>
>> It should be
>> "autoStartOnFailure": "true"
>>
>> e.g.
>> {
>>   "name": "MEMCACHED",
>>    "autoStartOnFailue": "true", ...
>> ________________________________________
>> From: Dheeren Bebortha <[email protected] 
>> <mailto:[email protected]>>
>> Sent: Thursday, July 23, 2015 10:11 PM
>> To: [email protected] <mailto:[email protected]>
>> Subject: Re: Settings for slider component restart on failure
>>
>> For slider+docker,  the config settings are in appConfig.json and 
>> metainfo.json. Would you be able to suggest equivalent configs?
>> Thanks,
>> -Dheeren Bebortha
>>
>>
>>> On Jul 23, 2015, at 9:58 PM, Sumit Mohanty <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>>
>>> You can use ....
>>>
>>>       <autoStartOnFailure>true</autoStartOnFailure>
>>>
>>> E.g. from storm package
>>>
>>> ...<component>
>>>       <name>DRPC_SERVER</name>
>>>       <category>MASTER</category>
>>>       <autoStartOnFailure>true</autoStartOnFailure>
>>>       <maxInstanceCount>1</maxInstanceCount>
>>>       <commandScript>
>>>         <script>scripts/drpc_server.py</script>
>>>         <scriptType>PYTHON</scriptType>
>>>         <timeout>600</timeout>
>>>       </commandScript>
>>>     </component>...
>>> ________________________________________
>>> From: Dheeren Bebortha <[email protected] 
>>> <mailto:[email protected]>>
>>> Sent: Thursday, July 23, 2015 9:49 PM
>>> To: [email protected] <mailto:[email protected]>
>>> Subject: Settings for slider component restart on failure
>>>
>>> I recently tested slider.0.80  for dockerized applications with some of the 
>>> recent patches. The latest document is so much better.
>>>
>>> I was assuming/expecting that the application components could be restarted 
>>> automatically on failure. But it does not. I looked at the slider agent 
>>> code and there seem to be some configurations that can be used to do this. 
>>> Can some one provide the required settings for component restart on 
>>> failures?
>>>
>>> Thanks in advance.
>>>
>>> -Dheeren
>

Reply via email to