openstack scheduler 配置参数说明


Table 5.23. Description of nova.conf file configuration options for schedulers that use algorithms to assign VM launch on particular compute hosts

Configuration option=Default value

(Type) Description

scheduler_host_manager=nova.scheduler.host_manager.HostManager

(StrOpt) The scheduler host manager class to use.

scheduler_max_attempts=3

(IntOpt) Maximum number of attempts to schedule an instance before giving up and setting the instance to error.

cpu_allocation_ratio=16.0

(FloatOpt) Virtual CPU to Physical CPU allocation ratio.

ram_allocation_ratio=1.5

(FloatOpt) virtual ram to physical ram allocation ratio.

reserved_host_disk_mb=0

(IntOpt) Amount of disk in MB to reserve for host/dom0.

reserved_host_memory_mb=512

(IntOpt) Amount of memory in MB to reserve for host/dom0.

scheduler_available_filters=nova.scheduler.filters.all_filters

(MultiStrOpt) Filter classes available to the scheduler which may be specified more than once. An entry of "nova.scheduler.filters.all_filters" maps to all filters included with nova.

scheduler_default_filters=AvailabilityZoneFilter,RamFilter,ComputeFilter

(ListOpt) Which filter class names to use for filtering hosts when not specified in the request.

compute_fill_first_cost_fn_weight=-1.0

(FloatOpt) How much weight to give the fill-first cost function. A negative value will reverse behavior: e.g. spread-first.

retry_host_cost_fn_weight=1.0

(FloatOpt) How much weight to give the retry host cost function. A negative value will reverse behavior: e.g. use multiple-times-retried hosts first.

least_cost_functions=nova.scheduler.least_cost.compute_fill_first_cost_fn

(ListOpt) Which cost functions the LeastCostScheduler should use.

noop_cost_fn_weight=1.0

(FloatOpt) How much weight to give the noop cost function.

scheduler_driver=nova.scheduler.multi.MultiScheduler

(StrOpt) Default driver to use for the scheduler.

compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler

(StrOpt) Driver to use for scheduling Compute calls.

volume_scheduler_driver=nova.scheduler.chance.ChanceScheduler

(StrOpt) Driver to use for scheduling volume calls.

scheduler_json_config_location=

(StrOpt) Absolute path to scheduler configuration JSON file.

max_cores=16

(IntOpt) maximum number of instance cores to allow per host.

max_gigabytes=10000

(IntOpt) maximum number of volume gigabytes to allow per host.

max_networks=1000

(IntOpt) maximum number of networks to allow per host.

skip_isolated_core_check=true

(BoolOpt) Allow overcommitting vcpus on isolated hosts.

scheduler_host_subset_size=1

(IntOpt) New instances will be scheduled on a host chosen randomly from a subset of the N best hosts, rather than just the host with the highest weight. This property defines the subset size that a host is chosen from. A value of 1 chooses the first host returned by the weighing functions. This value must be at least 1. Any value less than 1 will be ignored, and 1 will be used instead.


 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值