This repository has been archived by the owner on Jan 31, 2019. It is now read-only.
forked from josegonzalez/replicator
-
Notifications
You must be signed in to change notification settings - Fork 0
Init Command
Rampal Chopra edited this page Nov 21, 2018
·
1 revision
The init
command creates example job scaling and worker pool scaling meta documents in the current directory. These files provide a starting example for configuring both scaling functionalities.
-
-job-scaling
: Write a file which contains example job scaling configuration. This can be used directly within the Nomad job specification file to enable scaling for the desired job group. -
-cluster-scaling
: Write a file which contains example cluster scaling configuration. This can be adapted to your configuration management to enable cluster scaling.
$ replicator init
Example scaling configuration written to job_scaling.hcl
Example scaling configuration written to cluster_scaling.hcl
The job_scaling.hcl
file look like:
meta {
"replicator_cooldown" = 50
"replicator_enabled" = true
"replicator_max" = 10
"replicator_min" = 1
"replicator_notification_uid" = "REP1"
"replicator_scalein_mem" = 30
"replicator_scalein_cpu" = 30
"replicator_scaleout_mem" = 80
"replicator_scaleout_cpu" = 80
}
The cluster_scaling.hcl
looks like:
meta {
"replicator_cool_down" = 400
"replicator_enabled" = true
"replicator_max_size" = 10
"replicator_min_size" = 5
"replicator_node_fault_tolerance" = 1
"replicator_notification_uid" = "REP2"
"replicator_region" = "us-east-1"
"replicator_retry_threshold" = 3
"replicator_scaling_threshold" = 3
"replicator_worker_pool" = "container-node-public-prod"
}