Chronos run arguments

324 views
Skip to first unread message

Vish0007

unread,
Mar 6, 2015, 3:22:15 AM3/6/15
to chronos-...@googlegroups.com
Hi,

Where can I find list of all the arguments passed to the Chronos while starting.
On the git hub page following options but not all:
  • --master the mesos master url, same as you'd do for a mesos slave
  • --zk_hosts comma seperated list of host + port where zookeeper can be found
  • --cluster_name name of the cluster

Are there more options? where can I find those?


Thanks


Elizabeth Lingg

unread,
Mar 9, 2015, 7:06:47 PM3/9/15
to chronos-...@googlegroups.com
To get a full list of options, use the help flag, i.e. start-chronos.bash --help.

Thanks,
Elizabeth

Vish0007

unread,
Mar 10, 2015, 2:47:58 AM3/10/15
to chronos-...@googlegroups.com
I am using mesos/chronos container.
Inside the container i have "chronos" binary but no such script "start-chronos.bash".
executing chronos --help does not list any options.
Is it documented somewhere with explanation about the arguments?
If you have handy please paste those arguments here.

Thanks,

Elizabeth Lingg

unread,
Mar 10, 2015, 1:39:55 PM3/10/15
to Vish0007, chronos-...@googlegroups.com
Running the script worked for me. See the below output run out of the chronos home dir:

./bin/start-chronos.bash --help

Chronos home set to /Users/vm/sandbox/mesosphere/chronos

curl: (28) Connection timed out after 1001 milliseconds

Using jar file: /Users/vm/sandbox/mesosphere/chronos/target/chronos-2.3.0_mesos-0.20.1-SNAPSHOT.jar[0]

[2015-03-10 10:38:42,631] INFO --------------------- (com.airbnb.scheduler.Main$:36)

[2015-03-10 10:38:42,632] INFO Initializing chronos. (com.airbnb.scheduler.Main$:37)

[2015-03-10 10:38:42,634] INFO --------------------- (com.airbnb.scheduler.Main$:38)

      --assets_path  <arg>                   Set a local file system path to load

                                             assets from, instead of loading them

                                             from the packaged jar.

      --cassandra_consistency  <arg>         Consistency to use for Cassandra

                                             (default = ANY)

      --cassandra_contact_points  <arg>      Comma separated list of contact

                                             points for Cassandra

      --cassandra_keyspace  <arg>            Keyspace to use for Cassandra

                                             (default = metrics)

      --cassandra_port  <arg>                Port for Cassandra (default = 9042)

      --cassandra_table  <arg>               Table to use for Cassandra

                                             (default = chronos)

      --cassandra_ttl  <arg>                 TTL for records written to Cassandra

                                             (default = 31536000)

  -c, --cluster_name  <arg>                  The name of the cluster where Chronos

                                             is run

  -d, --disable_after_failures  <arg>        Disables a job after this many

                                             failures have occurred (default = 0)

  -f, --failover_timeout  <arg>              The failover timeout in seconds for

                                             Mesos (default = 1200)

      --failure_retry  <arg>                 Number of ms between retries

                                             (default = 60000)

      --graphite_group_prefix  <arg>         Group prefix for Graphite

                                             (default = )

  -g, --graphite_host_port  <arg>            Host and port (in the form

                                             `host:port`) for Graphite

      --graphite_reporting_interval  <arg>   Graphite reporting interval (seconds)

                                             (default = 60)

  -h, --hostname  <arg>                      The advertised hostname stored in

                                             ZooKeeper so another standby host can

                                             redirect to this elected leader

                                             (default = Elizabeths-MacBook-Pro.local)

      --http_credentials  <arg>              Credentials for accessing the http

                                             service. If empty, anyone can access

                                             the HTTP endpoint. A

                                             username:password pair is expected

                                             where the username must not contain

                                             ':'

      --http_port  <arg>                     The port to listen on for HTTP

                                             requests (default = 8080)

      --https_port  <arg>                    The port to listen on for HTTPS

                                             requests (default = 8443)

  -l, --leader_max_idle_time  <arg>          The look-ahead time for scheduling

                                             tasks in milliseconds

                                             (default = 5000)

      --mail_from  <arg>                     Mail from field

      --mail_password  <arg>                 Mail password (for auth)

      --mail_server  <arg>                   Address of the mailserver

      --mail_ssl                             Mail SSL

  -m, --mail_user  <arg>                     Mail user (for auth)

      --master  <arg>                        The URL of the Mesos master

                                             (default = local)

      --mesos_checkpoint                     Enable checkpointing in Mesos

      --mesos_framework_name  <arg>          The framework name

                                             (default = chronos-2.3.0_mesos-0.20.1-SNAPSHOT)

      --mesos_role  <arg>                    The Mesos role to run tasks under

                                             (default = *)

      --mesos_task_cpu  <arg>                Number of CPUs to request from Mesos

                                             for each task (default = 0.1)

      --mesos_task_disk  <arg>               Amount of disk capacity to request

                                             from Mesos for each task (MB)

                                             (default = 256)

      --mesos_task_mem  <arg>                Amount of memory to request from

                                             Mesos for each task (MB)

                                             (default = 128)

  -r, --raven_dsn  <arg>                     Raven DSN for connecting to a raven

                                             or sentry event service

      --reconciliation_interval  <arg>       Reconciliation interval in seconds

                                             (default = 600)

  -s, --schedule_horizon  <arg>              The look-ahead time for scheduling

                                             tasks in seconds (default = 60)

      --ssl_keystore_password  <arg>         The password for the keystore

      --ssl_keystore_path  <arg>             Path to the keystore, if supplied,

                                             SSL is enabled

  -t, --task_epsilon  <arg>                  The default epsilon value for tasks,

                                             in seconds (default = 60)

  -u, --user  <arg>                          The mesos user to run the processes

                                             under (default = root)

  -z, --zk_hosts  <arg>                      The list of ZooKeeper servers for

                                             storing state

                                             (default = localhost:2181)

      --zk_path  <arg>                       Path in ZooKeeper for storing state

                                             (default = /chronos/state)

      --zk_timeout  <arg>                    The timeout for ZooKeeper in

                                             milliseconds (default = 10000)

      --help                                 Show help message


--
You received this message because you are subscribed to a topic in the Google Groups "chronos-scheduler" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chronos-scheduler/Vy7sHhOICSs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chronos-schedu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vish0007

unread,
Mar 11, 2015, 3:18:58 AM3/11/15
to chronos-...@googlegroups.com, vishan...@gmail.com
Thanks.
Somehow the options are not list while using the chronos containers (mesos/chronos).

I am interested in the options:
mesos_role and mesos_checkpoint.
what these options do?

Thanks

Elizabeth Lingg

unread,
Mar 11, 2015, 2:32:56 PM3/11/15
to Vish0007, chronos-...@googlegroups.com
This would be the role you register your framework as. Checkpointing refers to allowing your framework to checkpoint relevant information and allow slaves to restart and recover and reconnect with executors. Here is a more detailed description: http://mesos.apache.org/documentation/latest/slave-recovery/.

Thanks,
Elizabeth
Reply all
Reply to author
Forward
0 new messages