You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by Dheeren Bebortha <dh...@oracle.com> on 2015/07/24 06:49:29 UTC
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
Re: Settings for slider component restart on failure
Posted by Sumit Mohanty <sm...@hortonworks.com>.
+Thomas
Its possible that the docker integration has not implemented the logic to honor this property yet.
________________________________________
From: Dheeren Bebortha <dh...@oracle.com>
Sent: Friday, July 24, 2015 11:07 AM
To: dev@slider.incubator.apache.org
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 <smohanty@hortonworks.com <ma...@hortonworks.com>> wrote:
>>
>> It should be
>> "autoStartOnFailure": "true"
>>
>> e.g.
>> {
>> "name": "MEMCACHED",
>> "autoStartOnFailue": "true", ...
>> ________________________________________
>> From: Dheeren Bebortha <dheeren.bebortha@oracle.com <ma...@oracle.com>>
>> Sent: Thursday, July 23, 2015 10:11 PM
>> To: dev@slider.incubator.apache.org <ma...@slider.incubator.apache.org>
>> 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 <smohanty@hortonworks.com <ma...@hortonworks.com>> 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 <dheeren.bebortha@oracle.com <ma...@oracle.com>>
>>> Sent: Thursday, July 23, 2015 9:49 PM
>>> To: dev@slider.incubator.apache.org <ma...@slider.incubator.apache.org>
>>> 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
>
Re: Settings for slider component restart on failure
Posted by Dheeren Bebortha <dh...@oracle.com>.
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 <smohanty@hortonworks.com <ma...@hortonworks.com>> wrote:
>>
>> It should be
>> "autoStartOnFailure": "true"
>>
>> e.g.
>> {
>> "name": "MEMCACHED",
>> "autoStartOnFailue": "true", ...
>> ________________________________________
>> From: Dheeren Bebortha <dheeren.bebortha@oracle.com <ma...@oracle.com>>
>> Sent: Thursday, July 23, 2015 10:11 PM
>> To: dev@slider.incubator.apache.org <ma...@slider.incubator.apache.org>
>> 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 <smohanty@hortonworks.com <ma...@hortonworks.com>> 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 <dheeren.bebortha@oracle.com <ma...@oracle.com>>
>>> Sent: Thursday, July 23, 2015 9:49 PM
>>> To: dev@slider.incubator.apache.org <ma...@slider.incubator.apache.org>
>>> 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
>
Re: Settings for slider component restart on failure
Posted by Dheeren Bebortha <dh...@oracle.com>.
Hi Sumit,
I tried to put autoStartOnFailure in all possible places. IT is just not working.
Here is the metainfo.json:
{
"schemaVersion": "2.1",
"application": {
"name": "fakeapp”,
"autoStartOnFailure": "true",
"components": [{
"name": “MYFAKEAPP",
"type": "docker",
"autoStartOnFailure": "true",
"timeout" : "60",
"dockerContainers": [{
"name" : "studio",
"image": “docker.oraclecorp.com/myfakeapp:6.6",
"autoStartOnFailure": "true",
"commandPath": "/usr/bin/docker -H tcp://127.0.0.1:4243",
"ports": [{
"containerPort": "7003",
"hostPort":"7003"
}]
}]
}]
}
}
-Dheeren
> On Jul 24, 2015, at 7:47 AM, Sumit Mohanty <sm...@hortonworks.com> wrote:
>
> It should be
> "autoStartOnFailure": "true"
>
> e.g.
> {
> "name": "MEMCACHED",
> "autoStartOnFailue": "true", ...
> ________________________________________
> From: Dheeren Bebortha <dh...@oracle.com>
> Sent: Thursday, July 23, 2015 10:11 PM
> To: dev@slider.incubator.apache.org
> 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 <sm...@hortonworks.com> 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 <dh...@oracle.com>
>> Sent: Thursday, July 23, 2015 9:49 PM
>> To: dev@slider.incubator.apache.org
>> 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
Re: Settings for slider component restart on failure
Posted by Sumit Mohanty <sm...@hortonworks.com>.
It should be
"autoStartOnFailure": "true"
e.g.
{
"name": "MEMCACHED",
"autoStartOnFailue": "true", ...
________________________________________
From: Dheeren Bebortha <dh...@oracle.com>
Sent: Thursday, July 23, 2015 10:11 PM
To: dev@slider.incubator.apache.org
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 <sm...@hortonworks.com> 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 <dh...@oracle.com>
> Sent: Thursday, July 23, 2015 9:49 PM
> To: dev@slider.incubator.apache.org
> 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
Re: Settings for slider component restart on failure
Posted by Dheeren Bebortha <dh...@oracle.com>.
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 <sm...@hortonworks.com> 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 <dh...@oracle.com>
> Sent: Thursday, July 23, 2015 9:49 PM
> To: dev@slider.incubator.apache.org
> 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
Re: Settings for slider component restart on failure
Posted by Sumit Mohanty <sm...@hortonworks.com>.
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 <dh...@oracle.com>
Sent: Thursday, July 23, 2015 9:49 PM
To: dev@slider.incubator.apache.org
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