aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject aurora git commit: Create
Date Fri, 18 Mar 2016 21:20:56 GMT
Repository: aurora
Updated Branches:
  refs/heads/master efa292944 -> b24619b28


Having a simple dump of the all scheduler configuration options makes it much easier to discover
or find them via a public search engine.
Ideally we would have a way to update this automatically, but anything is better than not
having them listed at all.

Reviewed at


Branch: refs/heads/master
Commit: b24619b28c4dbb35188871bacd0091a9e01218e3
Parents: efa2929
Author: Stephan Erb <>
Authored: Fri Mar 18 22:20:28 2016 +0100
Committer: Stephan Erb <>
Committed: Fri Mar 18 22:20:28 2016 +0100

 docs/                     |   1 +
 docs/ |   4 +-
 docs/    | 318 ++++++++++++++++++++++++++++++++
 3 files changed, 320 insertions(+), 3 deletions(-)
diff --git a/docs/ b/docs/
index 78f062a..673c854 100644
--- a/docs/
+++ b/docs/
@@ -24,6 +24,7 @@ We encourage you to ask questions on the [Aurora user list](http://aurora.apache
  * [Security](
  * [Monitoring](
  * [Hooks for Aurora Client API](
+ * [Scheduler Configuration](
  * [Scheduler Storage](
  * [Scheduler Storage and Maintenance](
  * [SLA Measurement](
diff --git a/docs/ b/docs/
index 03ee360..03bfdba 100644
--- a/docs/
+++ b/docs/
@@ -90,9 +90,7 @@ Like Mesos, Aurora uses command-line flags for runtime configuration. As
such th
 That way Aurora's current flags are visible in `ps` and in the `/vars` admin endpoint.
 Examples are available under `examples/scheduler/`. For a list of available Aurora flags
and their
-documentation run
-    /usr/local/aurora-scheduler/bin/aurora-scheduler -help
+documentation, see [this document](
 ### Replicated Log Configuration
 All Aurora state is persisted to a replicated log. This includes all jobs Aurora is running
diff --git a/docs/ b/docs/
new file mode 100644
index 0000000..7e3d801
--- /dev/null
+++ b/docs/
@@ -0,0 +1,318 @@
+# Scheduler Configuration
+The Aurora scheduler can take a variety of configuration options through command-line arguments.
+A list of the available options can be seen by running `aurora-scheduler -help`.
+Please refer to [Deploying the Aurora Scheduler]( for details
on how
+to properly set the most important options.
+$ aurora-scheduler -help
+-h or -help to print this help message
+Required flags:
+-backup_dir [not null]
+	Directory to store backups under. Will be created if it does not exist.
+	(
+-cluster_name [not null]
+	Name to identify the cluster being served.
+	(
+	Properties file which contains framework credentials to authenticate with Mesosmaster. Must
contain the properties 'aurora_authentication_principal' and 'aurora_authentication_secret'.
+	(org.apache.aurora.scheduler.mesos.CommandLineDriverSettingsModule.framework_authentication_file)
+-mesos_master_address [not null]
+	Address for the mesos master, can be a socket address or zookeeper path.
+	(org.apache.aurora.scheduler.mesos.CommandLineDriverSettingsModule.mesos_master_address)
+	The Mesos role this framework will register as. The default is to left this empty, and the
framework will register without any role and only receive unreserved resources in offer.
+	(org.apache.aurora.scheduler.mesos.CommandLineDriverSettingsModule.mesos_role)
+-serverset_path [not null, must be non-empty]
+	ZooKeeper ServerSet path to register at.
+	(
+	Fully qualified class name of the servlet filter to be applied after the shiro auth filters
are applied.
+	(
+	Path to the thermos executor entry point.
+	(org.apache.aurora.scheduler.configuration.executor.ExecutorModule.thermos_executor_path)
+-tier_config [file must be readable]
+	Configuration file defining supported task tiers, task traits and behaviors.
+	(org.apache.aurora.scheduler.SchedulerModule.tier_config)
+	user:password to use when authenticating with ZooKeeper.
+	(org.apache.aurora.scheduler.zookeeper.guice.client.flagged.FlaggedClientConfig.zk_digest_credentials)
+-zk_endpoints [must have at least 1 item]
+	Endpoint specification for the ZooKeeper servers.
+	(org.apache.aurora.scheduler.zookeeper.guice.client.flagged.FlaggedClientConfig.zk_endpoints)
+Optional flags:
+	Allow to pass docker container parameters in the job.
+	(
+	Container types that are allowed to be used by jobs.
+	(
+-async_slot_stat_update_interval=(1, mins)
+	Interval on which to try to update open slot stats.
+	(org.apache.aurora.scheduler.stats.AsyncStatsModule.async_slot_stat_update_interval)
+-async_task_stat_update_interval=(1, hrs)
+	Interval on which to try to update resource consumption stats.
+	(org.apache.aurora.scheduler.stats.AsyncStatsModule.async_task_stat_update_interval)
+	The number of worker threads to process async task operations with.
+	(org.apache.aurora.scheduler.async.AsyncModule.async_worker_threads)
+-backup_interval=(1, hrs)
+	Minimum interval on which to write a storage backup.
+	(
+	Number of threads to use for the cron scheduler thread pool.
+	(org.apache.aurora.scheduler.cron.quartz.CronModule.cron_scheduler_num_threads)
+-cron_start_initial_backoff=(1, secs)
+	Initial backoff delay while waiting for a previous cron run to be killed.
+	(org.apache.aurora.scheduler.cron.quartz.CronModule.cron_start_initial_backoff)
+-cron_start_max_backoff=(1, mins)
+	Max backoff delay while waiting for a previous cron run to be killed.
+	(org.apache.aurora.scheduler.cron.quartz.CronModule.cron_start_max_backoff)
+	TimeZone to use for cron predictions.
+	(org.apache.aurora.scheduler.cron.quartz.CronModule.cron_timezone)
+-custom_executor_config [file must exist, file must be readable]
+	Path to custom executor settings configuration file.
+	(org.apache.aurora.scheduler.configuration.executor.ExecutorModule.custom_executor_config)
+-db_lock_timeout=(1, mins)
+	H2 table lock timeout
+	(
+-db_row_gc_interval=(2, hrs)
+	Interval on which to scan the database for unused row references.
+	(
+	Default docker parameters for any job that does not explicitly declare parameters.
+	(
+-dlog_max_entry_size=(512, KB)
+	Specifies the maximum entry size to append to the log. Larger entries will be split across
entry Frames.
+	(
+-dlog_shutdown_grace_period=(2, secs)
+	Specifies the maximum time to wait for scheduled checkpoint and snapshot actions to complete
before forcibly shutting down.
+	(
+-dlog_snapshot_interval=(1, hrs)
+	Specifies the frequency at which snapshots of local storage are taken and written to the
+	(
+	List of domains for which CORS support should be enabled.
+	(org.apache.aurora.scheduler.http.api.ApiModule.enable_cors_for)
+	Enable H2 DB management console.
+	(org.apache.aurora.scheduler.http.H2ConsoleModule.enable_h2_console)
+	Enable the preemptor and preemption
+	(org.apache.aurora.scheduler.preemptor.PreemptorModule.enable_preemptor)
+	User to start the executor. Defaults to "root". Set this to an unprivileged user if the
mesos master was started with "--no-root_submissions". If set to anything other than "root",
the executor will ignore the "role" setting for jobs since it can't use setuid() anymore.
This means that all your jobs will run under the specified user and the user has to exist
on the mesos slaves.
+	(org.apache.aurora.scheduler.mesos.CommandLineDriverSettingsModule.executor_user)
+-first_schedule_delay=(1, ms)
+	Initial amount of time to wait before first attempting to schedule a PENDING task.
+	(org.apache.aurora.scheduler.scheduling.SchedulingModule.first_schedule_delay)
+-flapping_task_threshold=(5, mins)
+	A task that repeatedly runs for less than this time is considered to be flapping.
+	(org.apache.aurora.scheduler.scheduling.SchedulingModule.flapping_task_threshold)
+	When 'framework_authentication_file' flag is set, the FrameworkInfo registered with the
mesos master will also contain the principal. This is necessary if you intend to use mesos
authorization via mesos ACLs. The default will change in a future release.
+	(org.apache.aurora.scheduler.mesos.CommandLineDriverSettingsModule.framework_announce_principal)
+-framework_failover_timeout=(21, days)
+	Time after which a framework is considered deleted.  SHOULD BE VERY HIGH.
+	(org.apache.aurora.scheduler.mesos.CommandLineDriverSettingsModule.framework_failover_timeout)
+	A comma seperated list of mount points (in host:container form) to mount into all (non-mesos)
+	(org.apache.aurora.scheduler.configuration.executor.ExecutorModule.global_container_mounts)
+	Maximum number of terminated tasks to retain in a job history.
+	(org.apache.aurora.scheduler.pruning.PruningModule.history_max_per_job_threshold)
+-history_min_retention_threshold=(1, hrs)
+	Minimum guaranteed time for task history retention before any pruning is attempted.
+	(org.apache.aurora.scheduler.pruning.PruningModule.history_min_retention_threshold)
+-history_prune_threshold=(2, days)
+	Time after which the scheduler will prune terminated task history.
+	(org.apache.aurora.scheduler.pruning.PruningModule.history_prune_threshold)
+	The hostname to advertise in ZooKeeper instead of the locally-resolved hostname.
+	(org.apache.aurora.scheduler.http.JettyServerModule.hostname)
+	HTTP Authentication mechanism to use.
+	(
+	The port to start an HTTP server on.  Default value will choose a random port.
+	(org.apache.aurora.scheduler.http.JettyServerModule.http_port)
+-initial_flapping_task_delay=(30, secs)
+	Initial amount of time to wait before attempting to schedule a flapping task.
+	(org.apache.aurora.scheduler.scheduling.SchedulingModule.initial_flapping_task_delay)
+-initial_schedule_penalty=(1, secs)
+	Initial amount of time to wait before attempting to schedule a task that has failed to schedule.
+	(org.apache.aurora.scheduler.scheduling.SchedulingModule.initial_schedule_penalty)
+-initial_task_kill_retry_interval=(5, secs)
+	When killing a task, retry after this delay if mesos has not responded, backing off up to
+	(org.apache.aurora.scheduler.reconciliation.ReconciliationModule.initial_task_kill_retry_interval)
+	Maximum number of completed job updates to retain in a job update history.
+	(org.apache.aurora.scheduler.pruning.PruningModule.job_update_history_per_job_threshold)
+-job_update_history_pruning_interval=(15, mins)
+	Job update history pruning interval.
+	(org.apache.aurora.scheduler.pruning.PruningModule.job_update_history_pruning_interval)
+-job_update_history_pruning_threshold=(30, days)
+	Time after which the scheduler will prune completed job update history.
+	(org.apache.aurora.scheduler.pruning.PruningModule.job_update_history_pruning_threshold)
+	Produce additional Kerberos debugging output.
+	(
+	Path to the server keytab.
+	(
+	Kerberos server principal to use, usually of the form HTTP/
+	(
+-max_flapping_task_delay=(5, mins)
+	Maximum delay between attempts to schedule a flapping task.
+	(org.apache.aurora.scheduler.scheduling.SchedulingModule.max_flapping_task_delay)
+-max_leading_duration=(1, days)
+	After leading for this duration, the scheduler should commit suicide.
+	(org.apache.aurora.scheduler.SchedulerModule.max_leading_duration)
+-max_registration_delay=(1, mins)
+	Max allowable delay to allow the driver to register before aborting
+	(org.apache.aurora.scheduler.SchedulerModule.max_registration_delay)
+-max_reschedule_task_delay_on_startup=(30, secs)
+	Upper bound of random delay for pending task rescheduling on scheduler startup.
+	(org.apache.aurora.scheduler.scheduling.SchedulingModule.max_reschedule_task_delay_on_startup)
+	Maximum number of backups to retain before deleting the oldest backups.
+	(
+	Maximum number of scheduling attempts to make per second.
+	(org.apache.aurora.scheduler.scheduling.SchedulingModule.max_schedule_attempts_per_sec)
+-max_schedule_penalty=(1, mins)
+	Maximum delay between attempts to schedule a PENDING tasks.
+	(org.apache.aurora.scheduler.scheduling.SchedulingModule.max_schedule_penalty)
+-max_status_update_batch_size=1000 [must be > 0]
+	The maximum number of status updates that can be processed in a batch.
+	(org.apache.aurora.scheduler.SchedulerModule.max_status_update_batch_size)
+-max_tasks_per_job=4000 [must be > 0]
+	Maximum number of allowed tasks in a single job.
+	(
+-max_update_instance_failures=20000 [must be > 0]
+	Upper limit on the number of failures allowed during a job update. This helps cap potentially
unbounded entries into storage.
+	(
+-min_offer_hold_time=(5, mins)
+	Minimum amount of time to hold a resource offer before declining.
+	(org.apache.aurora.scheduler.offers.OffersModule.min_offer_hold_time)
+	The maximum number of attempts to obtain a new log writer.
+	(org.apache.aurora.scheduler.log.mesos.MesosLogStreamModule.native_log_election_retries)
+-native_log_election_timeout=(15, secs)
+	The timeout for a single attempt to obtain a new log writer.
+	(org.apache.aurora.scheduler.log.mesos.MesosLogStreamModule.native_log_election_timeout)
+	Path to a file to store the native log data in.  If the parent directory doesnot exist it
will be created.
+	(org.apache.aurora.scheduler.log.mesos.MesosLogStreamModule.native_log_file_path)
+	The size of the quorum required for all log mutations.
+	(org.apache.aurora.scheduler.log.mesos.MesosLogStreamModule.native_log_quorum_size)
+-native_log_read_timeout=(5, secs)
+	The timeout for doing log reads.
+	(org.apache.aurora.scheduler.log.mesos.MesosLogStreamModule.native_log_read_timeout)
+-native_log_write_timeout=(3, secs)
+	The timeout for doing log appends and truncations.
+	(org.apache.aurora.scheduler.log.mesos.MesosLogStreamModule.native_log_write_timeout)
+	A zookeeper node for use by the native log to track the master coordinator.
+	(org.apache.aurora.scheduler.log.mesos.MesosLogStreamModule.native_log_zk_group_path)
+-offer_hold_jitter_window=(1, mins)
+	Maximum amount of random jitter to add to the offer hold time window.
+	(org.apache.aurora.scheduler.offers.OffersModule.offer_hold_jitter_window)
+-offer_reservation_duration=(3, mins)
+	Time to reserve a slave's offers while trying to satisfy a task preempting another.
+	(org.apache.aurora.scheduler.scheduling.SchedulingModule.offer_reservation_duration)
+-preemption_delay=(3, mins)
+	Time interval after which a pending task becomes eligible to preempt other tasks
+	(org.apache.aurora.scheduler.preemptor.PreemptorModule.preemption_delay)
+-preemption_slot_hold_time=(5, mins)
+	Time to hold a preemption slot found before it is discarded.
+	(org.apache.aurora.scheduler.preemptor.PreemptorModule.preemption_slot_hold_time)
+-preemption_slot_search_interval=(1, mins)
+	Time interval between pending task preemption slot searches.
+	(org.apache.aurora.scheduler.preemptor.PreemptorModule.preemption_slot_search_interval)
+	Allows receiving revocable resource offers from Mesos.
+	(org.apache.aurora.scheduler.mesos.CommandLineDriverSettingsModule.receive_revocable_resources)
+-reconciliation_explicit_interval=(60, mins)
+	Interval on which scheduler will ask Mesos for status updates of all non-terminal tasks
known to scheduler.
+	(org.apache.aurora.scheduler.reconciliation.ReconciliationModule.reconciliation_explicit_interval)
+-reconciliation_implicit_interval=(60, mins)
+	Interval on which scheduler will ask Mesos for status updates of all non-terminal tasks
known to Mesos.
+	(org.apache.aurora.scheduler.reconciliation.ReconciliationModule.reconciliation_implicit_interval)
+-reconciliation_initial_delay=(1, mins)
+	Initial amount of time to delay task reconciliation after scheduler start up.
+	(org.apache.aurora.scheduler.reconciliation.ReconciliationModule.reconciliation_initial_delay)
+-reconciliation_schedule_spread=(30, mins)
+	Difference between explicit and implicit reconciliation intervals intended to create a non-overlapping
task reconciliation schedule.
+	(org.apache.aurora.scheduler.reconciliation.ReconciliationModule.reconciliation_schedule_spread)
+	Path to shiro.ini for authentication and authorization configuration.
+	(
+	Guice modules for configuring Shiro Realms.
+	(
+	Metric categories collected for non production tasks.
+	(org.apache.aurora.scheduler.sla.SlaModule.sla_non_prod_metrics)
+	Metric categories collected for production tasks.
+	(org.apache.aurora.scheduler.sla.SlaModule.sla_prod_metrics)
+-sla_stat_refresh_interval=(1, mins)
+	The SLA stat refresh interval.
+	(org.apache.aurora.scheduler.sla.SlaModule.sla_stat_refresh_interval)
+-slow_query_log_threshold=(25, ms)
+	Log all queries that take at least this long to execute.
+	(
+-slow_query_log_threshold=(25, ms)
+	Log all queries that take at least this long to execute.
+	(
+-stat_retention_period=(1, hrs)
+	Time for a stat to be retained in memory before expiring.
+	(org.apache.aurora.scheduler.stats.StatsModule.stat_retention_period)
+-stat_sampling_interval=(1, secs)
+	Statistic value sampling interval.
+	(org.apache.aurora.scheduler.stats.StatsModule.stat_sampling_interval)
+	The number of CPU cores to allocate for each instance of the executor.
+	(org.apache.aurora.scheduler.configuration.executor.ExecutorModule.thermos_executor_cpu)
+	Extra arguments to be passed to the thermos executor
+	(org.apache.aurora.scheduler.configuration.executor.ExecutorModule.thermos_executor_flags)
+-thermos_executor_ram=(128, MB)
+	The amount of RAM to allocate for each instance of the executor.
+	(org.apache.aurora.scheduler.configuration.executor.ExecutorModule.thermos_executor_ram)
+	A comma seperated list of additional resources to copy into the sandbox.Note: if thermos_executor_path
is not the thermos_executor.pex file itself, this must include it.
+	(org.apache.aurora.scheduler.configuration.executor.ExecutorModule.thermos_executor_resources)
+	Path to the thermos observer root (by default /var/run/thermos.)
+	(org.apache.aurora.scheduler.configuration.executor.ExecutorModule.thermos_observer_root)
+-transient_task_state_timeout=(5, mins)
+	The amount of time after which to treat a task stuck in a transient state as LOST.
+	(org.apache.aurora.scheduler.reconciliation.ReconciliationModule.transient_task_state_timeout)
+	Whether to use the experimental database-backed task store.
+	(
+	URL prefix for job container stats.
+	(
+	chroot path to use for the ZooKeeper connections
+	(org.apache.aurora.scheduler.zookeeper.guice.client.flagged.FlaggedClientConfig.zk_chroot_path)
+	Launches an embedded zookeeper server for local testing causing -zk_endpoints to be ignored
if specified.
+	(org.apache.aurora.scheduler.zookeeper.guice.client.flagged.FlaggedClientConfig.zk_in_proc)
+-zk_session_timeout=(4, secs)
+	The ZooKeeper session timeout.
+	(org.apache.aurora.scheduler.zookeeper.guice.client.flagged.FlaggedClientConfig.zk_session_timeout)

View raw message