Home

Awesome

Mesos

Mesos clients.

Documentation

<a name="chronos"/>

mesos.Chronos([opts])

Initialize a new Chronos client.

Options

Usage

var mesos = require('mesos');

var chronos = mesos.Chronos({ host: '10.141.141.10' });
<a name="chronos-job-create"/>

chronos.job.create(opts, callback)

Create job.

Options

chronos.job.destroy(opts, callback)

Delete job.

Options

<a name="chronos-job-list"/>

chronos.job.list(callback)

List jobs.

chronos.job.search(opts, callback)

Search jobs.

Options

chronos.job.start(opts, callback)

Manually start job.

Options

chronos.job.stats(opts, callback)

Get jobs statistics.

Options

If you specify the job name you'll get all the statistics for that job, otherwise if you specify a percentile you'll get that statistic for all jobs.

You must specify either a job name or a percentile.

chronos.task.update(opts, callback)

Update task.

Options

chronos.task.kill(opts, callback)

Kill tasks.

Options

<a name="marathon"/>

mesos.Marathon([opts])

Initialize a new Marathon client.

Options

Usage

var mesos = require('mesos');

var marathon = mesos.Marathon({ host: '10.141.141.10' });

See Marathon REST documentation for more information.

<a name="marathon-app-create"/>

marathon.app.create(opts, callback)

Create and start a new application.

Options

And more, see docs.

<a name="marathon-app-list"/>

marathon.app.list([opts], callback)

List all running applications.

Options

<a name="marathon-app-get"/>

marathon.app.get(opts, callback)

Get application with by ID.

Options

<a name="marathon-app-versions"/>

marathon.app.versions(opts, callback)

List the versions of an application by ID.

Options

<a name="marathon-app-version"/>

marathon.app.version(opts, callback)

List the configuration of an application by ID at a specified version.

Options

<a name="marathon-app-update"/>

marathon.app.update(opts, callback)

Change parameters of a running application. The new application parameters apply only to subsequently created tasks, and currently running tasks are not pre-emptively restarted.

Options

And more, see docs.

<a name="marathon-app-destroy"/>

marathon.app.destroy(opts, callback)

Destroy an applicationb by ID.

Options

<a name="marathon-app-tasks"/>

marathon.app.tasks(opts, callback)

List all running tasks for an application by ID.

Options

<a name="marathon-app-kill"/>

marathon.app.kill(opts, callback)

Kill tasks that belong to an application.

Options

<a name="marathon-eventSubscription-register"/>

marathon.eventSubscription.register(opts, callback)

Register a callback URL as an event subscriber.

Options

<a name="marathon-eventSubscription-list"/>

marathon.eventSubscription.list(callback)

List all event subscriber callback URLs.

<a name="marathon-eventSubscription-unregister"/>

marathon.eventSubscription.unregister(opts, callback)

Unregister a callback URL.

Options

<a name="marathon-tasks"/>

marathon.tasks(callback)

List all running tasks.

Development

  1. Install Vagrant

  2. Clone repository

    $ git clone https://github.com/silas/node-mesos.git
    
  3. Switch to project directory

    $ cd node-mesos
    
  4. Start VM

    $ vagrant up
    
  5. Install client dependencies

    $ npm install
    
  6. Run tests

    $ npm test
    

License

This work is licensed under the MIT License (see the LICENSE file).