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 <http://10.1.122.1:2002/scheduler/iso8601> -d '
{
  "schedule": "R10/2015-06-05T13:36:00Z/PT1M",
  "name": "test-container-job",
 "container": {
  "type": "DOCKER",
  "image": "<your test conatiner tag>",
  "network": "BRIDGE"
  },
  "cpus": "0.1",
  "mem": "512",
 "uris" : ["file:///.dockercfg"],
  "command": "ls /"
}'
Will it schedule the job on all 3 nodes, or only the first one? Can I
actually choose which one in my json?
Thks

On Tue, Jan 10, 2017 at 10:47 AM, Stephen Gran <[email protected]>
wrote:

> 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 6, 2017 at 1:33 PM, Radek Gruchalski <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     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
> >     <https://mesos.github.io/chronos/docs/api.html#job-configuration>
> >
> >     Check the container field.
> >
> >     –
> >     Best regards,
> >     Radek Gruchalski
> >     [email protected] <mailto:[email protected]>
> >
> >
> >     On January 6, 2017 at 7:17:36 PM, l vic ([email protected]
> >     <mailto:[email protected]>) wrote:
> >
> >>     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
> >>     <[email protected] <mailto:[email protected]>> wrote:
> >>
> >>         There are two options:
> >>
> >>         - https://github.com/dcos/metronome
> >>         <https://github.com/dcos/metronome>
> >>         - https://github.com/mesos/chronos
> >>         <https://github.com/mesos/chronos>
> >>
> >>         while Metronome, apparently, being a successor of Chronos.
> >>
> >>         –
> >>         Best regards,
> >>         Radek Gruchalski
> >>         [email protected] <mailto:[email protected]>
> >>
> >>
> >>         On January 6, 2017 at 5:40:45 PM, l vic ([email protected]
> >>         <mailto:[email protected]>) wrote:
> >>
> >>>         Hi,
> >>>         Is there a way to schedule mesos framework task for execution
> >>>         at certain day/time?
> >>>         Thank youm
> >>>         -V
> >>
> >>
> >
>
> --
> Stephen Gran
> Senior Technical Architect
>
> picture the possibilities | piksel.com
>

Reply via email to