Added configuration file
The Scheduler manager should specify all configuration parameters on a dedicated configuration file. Bug: #1663589 Change-Id: I7ceb140182db306567d7f7a6b5bfcf0871249a05 Sem-Ver: feature
This commit is contained in:
parent
cf8273e461
commit
e8fa8cb567
|
@ -0,0 +1,190 @@
|
|||
[DEFAULT]
|
||||
|
||||
|
||||
[SchedulerManager]
|
||||
autostart = True
|
||||
|
||||
# set the manager rate (minutes)
|
||||
rate = 1
|
||||
|
||||
# set the list of projects accessing to the shared quota
|
||||
# projects = prj_a, prj_b
|
||||
#projects =
|
||||
|
||||
# set the projects share
|
||||
# shares = prj_a=70, prj_b=30
|
||||
#shares =
|
||||
|
||||
# set the default max time to live (minutes) for VM/Container
|
||||
default_TTL = 2880
|
||||
|
||||
# set, for the specified projects, the max time to live (minutes) for VM/Container
|
||||
# TTLs = prj_a=1440, prj_b=2880
|
||||
#TTLs =
|
||||
|
||||
# set the max depth used by the backfilling strategy (default: 100)
|
||||
# this allows Synergy to not check the whole queue when looking for VMs to start
|
||||
backfill_depth = 100
|
||||
|
||||
# set the notification topic used by Nova for informing listeners about the state
|
||||
# changes of the VMs. In case some other service (e.g. Ceilometer) is listening
|
||||
# on the default Nova topic (i.e. "notifications"), please define a new topic
|
||||
specific for Synergy (e.g. notification_topics = notifications,synergy_notifications)
|
||||
notification_topic = notifications
|
||||
|
||||
|
||||
[FairShareManager]
|
||||
autostart = True
|
||||
|
||||
# set the manager rate (minutes)
|
||||
rate = 2
|
||||
|
||||
# set the period size (default: 7 days)
|
||||
period_length = 7
|
||||
|
||||
# set num of periods (default: 3)
|
||||
periods = 3
|
||||
|
||||
# set the default share value (default: 10)
|
||||
default_share = 10
|
||||
|
||||
# set the dacay weight, float value [0,1] (default: 0.5)
|
||||
decay_weight = 0.5
|
||||
|
||||
# set the vcpus weight (default: 100)
|
||||
vcpus_weight = 50
|
||||
|
||||
# set the age weight (default: 10)
|
||||
age_weight = 10
|
||||
|
||||
# set the memory weight (default: 70)
|
||||
memory_weight = 70
|
||||
|
||||
|
||||
[KeystoneManager]
|
||||
autostart = True
|
||||
|
||||
# set the manager rate (minutes)
|
||||
rate = 5
|
||||
|
||||
# set the Keystone url (v3 only)
|
||||
auth_url = http://CONTROLLER_HOST:5000/v3
|
||||
|
||||
# set the name of user with admin role
|
||||
#username =
|
||||
|
||||
# set the password of user with admin role
|
||||
#password =
|
||||
|
||||
# set the project name to request authorization on
|
||||
#project_name =
|
||||
|
||||
# set the project id to request authorization on
|
||||
#project_id =
|
||||
|
||||
# set the http connection timeout (default: 60)
|
||||
timeout = 60
|
||||
|
||||
# set the user domain name (default: default)
|
||||
user_domain_name = default
|
||||
|
||||
# set the project domain name (default: default)
|
||||
project_domain_name = default
|
||||
|
||||
# set the clock skew. This forces the request for token, a
|
||||
# delta time before the token expiration (default: 60 sec)
|
||||
clock_skew = 60
|
||||
|
||||
# set the PEM encoded Certificate Authority to use when verifying HTTPs connections
|
||||
#ssl_ca_file =
|
||||
|
||||
# set the SSL client certificate (PEM encoded)
|
||||
#ssl_cert_file =
|
||||
|
||||
|
||||
[NovaManager]
|
||||
autostart = True
|
||||
|
||||
# set the manager rate (minutes)
|
||||
rate = 5
|
||||
|
||||
#set the http connection timeout (default: 60)
|
||||
timeout = 60
|
||||
|
||||
# set the AMQP backend type (e.g. rabbit, qpid)
|
||||
#amqp_backend =
|
||||
|
||||
# set the AMQP HA cluster host:port pairs
|
||||
#amqp_hosts =
|
||||
|
||||
# set the AMQP broker address where a single node is used (default: localhost)
|
||||
amqp_host = localhost
|
||||
|
||||
# set the AMQP broker port where a single node is used
|
||||
amqp_port = 5672
|
||||
|
||||
# set the AMQP user
|
||||
#amqp_user =
|
||||
|
||||
# set the AMQP user password
|
||||
#amqp_password =
|
||||
|
||||
# set the AMQP virtual host (default: /)
|
||||
amqp_virtual_host = /
|
||||
|
||||
# set the Nova host (default: localhost)
|
||||
host = CONTROLLER_HOST
|
||||
|
||||
# set the Nova conductor topic (default: conductor)
|
||||
conductor_topic = conductor
|
||||
|
||||
# set the Nova compute topic (default: compute)
|
||||
compute_topic = compute
|
||||
|
||||
# set the Nova scheduler topic (default: scheduler)
|
||||
scheduler_topic = scheduler
|
||||
|
||||
# set the Nova database connection
|
||||
db_connection=DIALECT+DRIVER://USER:PASSWORD@DB_HOST/nova
|
||||
|
||||
# set the Nova CPU allocation ratio (default: 16)
|
||||
cpu_allocation_ratio = 16
|
||||
|
||||
# set the Nova RAM allocation ratio (default: 1.5)
|
||||
ram_allocation_ratio = 1.5
|
||||
|
||||
# set the Nova metadata_proxy_shared_secret
|
||||
metadata_proxy_shared_secret =
|
||||
|
||||
# set the PEM encoded Certificate Authority to use when verifying HTTPs connections
|
||||
#ssl_ca_file =
|
||||
|
||||
# set the SSL client certificate (PEM encoded)
|
||||
#ssl_cert_file =
|
||||
|
||||
|
||||
[QueueManager]
|
||||
autostart = True
|
||||
|
||||
# set the manager rate (minutes)
|
||||
rate = 60
|
||||
|
||||
# set the Synergy database connection:
|
||||
db_connection = DIALECT+DRIVER://USER:PASSWORD@DB_HOST/synergy
|
||||
|
||||
# set the connection pool size (default: 10)
|
||||
db_pool_size = 10
|
||||
|
||||
# set the number of seconds after which a connection is automatically
|
||||
# recycled (default: 30)
|
||||
db_pool_recycle = 30
|
||||
|
||||
# set the max overflow (default: 5)
|
||||
db_max_overflow = 5
|
||||
|
||||
|
||||
[QuotaManager]
|
||||
autostart = True
|
||||
|
||||
# set the manager rate (minutes)
|
||||
rate = 5
|
|
@ -0,0 +1 @@
|
|||
config/synergy_scheduler.conf /etc/synergy
|
|
@ -41,11 +41,13 @@ schedulers.
|
|||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
install -D -m0644 config/synergy_scheduler.conf %{buildroot}%{_sysconfdir}/synergy/synergy_scheduler.conf
|
||||
|
||||
|
||||
%files
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%config(noreplace) %{_sysconfdir}/synergy/synergy_scheduler.conf
|
||||
|
||||
|
||||
%changelog
|
||||
|
|
Loading…
Reference in New Issue