Re: cron-like scheduling in mesos framework?

2017-01-10 Thread l vic
suppose i have more than one db container on the same node... I don't think I can constrain to the certain container-id, or can i? On Tue, Jan 10, 2017 at 11:58 AM, Diogo Gomes wrote: > For this purpose, you should use constraints. > >

Re: cron-like scheduling in mesos framework?

2017-01-10 Thread Diogo Gomes
For this purpose, you should use constraints. https://mesos.github.io/chronos/docs/api.html#constraints Diogo Gomes > On 10 de jan de 2017, at 14:31, l vic wrote: > > OK, got it, thanks. > That makes it useless for data backup though, if chronos starts new container

Re: cron-like scheduling in mesos framework?

2017-01-10 Thread l vic
OK, got it, thanks. That makes it useless for data backup though, if chronos starts new container on the node where it does not have an access to db data On Tue, Jan 10, 2017 at 11:14 AM, Stephen Gran wrote: > Hi, > > This is what I'm trying to say, perhaps not very

Re: cron-like scheduling in mesos framework?

2017-01-10 Thread Stephen Gran
Hi, This is what I'm trying to say, perhaps not very clearly: the task 'ls /' will be run in a 4th container. It is a new process. Cheers, On 10/01/17 15:54, l vic wrote: > Great, but I have several servers: 3 different containers running on 3 > different nodes. If i try to schedule the job :

Re: cron-like scheduling in mesos framework?

2017-01-10 Thread l vic
Great, but I have several servers: 3 different containers running on 3 different nodes. If i try to schedule the job : curl -L -H 'Content-Type: application/json' -X POST http://chronos-node: 2002/scheduler/iso8601 -d ' { "schedule":

Re: cron-like scheduling in mesos framework?

2017-01-10 Thread Stephen Gran
Hi, Chronos launches a new task to perform the job. Think of it more like cron launching a new process when this is run on a single server. Cheers, On 10/01/17 15:31, l vic wrote: > If I have cluster of 3 running containers - how Chronos will select one > to schedule the job? > > On Fri, Jan

Re: cron-like scheduling in mesos framework?

2017-01-10 Thread l vic
If I have cluster of 3 running containers - how Chronos will select one to schedule the job? On Fri, Jan 6, 2017 at 1:33 PM, Radek Gruchalski wrote: > Chronos launches a task on Mesos whenever a scheduled event is bound to > happen. > You can run a container task with

Re: cron-like scheduling in mesos framework?

2017-01-06 Thread Radek Gruchalski
Chronos launches a task on Mesos whenever a scheduled event is bound to happen. You can run a container task with Chronos, n problem: https://mesos.github.io/chronos/docs/api.html#job-configuration Check the container field. – Best regards, Radek Gruchalski ra...@gruchalski.com On January 6,

Re: cron-like scheduling in mesos framework?

2017-01-06 Thread l vic
Chronos is a separate service... I have database cluster running as Mesos framework. I have to periodically schedule data backups using shell scripts within running docker container. Is that possible with Chronos? On Fri, Jan 6, 2017 at 11:47 AM, Radek Gruchalski wrote: >

Re: cron-like scheduling in mesos framework?

2017-01-06 Thread Erb, Stephan
os.apache.org> Date: Friday, 6 January 2017 at 17:40 To: "user@mesos.apache.org" <user@mesos.apache.org> Subject: cron-like scheduling in mesos framework? Hi, Is there a way to schedule mesos framework task for execution at certain day/time? Thank youm -V

Re: cron-like scheduling in mesos framework?

2017-01-06 Thread Steven Schlansker
Singularity also supports this well, https://github.com/HubSpot/Singularity (and it is a framework where you can do both "regular" and "scheduled" tasks through one interface) > On Jan 6, 2017, at 8:47 AM, Tomas Barton wrote: > > Hi, > > try Chronos framework

Re: cron-like scheduling in mesos framework?

2017-01-06 Thread Tomas Barton
Hi, try Chronos framework https://mesos.github.io/chronos/ Tomas On 6 January 2017 at 17:40, l vic wrote: > Hi, > Is there a way to schedule mesos framework task for execution at certain > day/time? > Thank youm > -V >

Re: cron-like scheduling in mesos framework?

2017-01-06 Thread Radek Gruchalski
There are two options: - https://github.com/dcos/metronome - https://github.com/mesos/chronos while Metronome, apparently, being a successor of Chronos. – Best regards, Radek Gruchalski ra...@gruchalski.com On January 6, 2017 at 5:40:45 PM, l vic (lvic4...@gmail.com) wrote: Hi, Is there a

Re: cron-like scheduling in mesos framework?

2017-01-06 Thread haosdent
You may try https://github.com/mesos/chronos or https://github.com/farmapromlab/rundeck-mesos-plugin On Sat, Jan 7, 2017 at 12:40 AM, l vic wrote: > Hi, > Is there a way to schedule mesos framework task for execution at certain > day/time? > Thank youm > -V > -- Best

cron-like scheduling in mesos framework?

2017-01-06 Thread l vic
Hi, Is there a way to schedule mesos framework task for execution at certain day/time? Thank youm -V