workmutiple=0.05
fi
sed -i "s/worker_multiplier: 1.0/worker_multiplier: ${workmutiple}/g" default_deployment_config.yaml
+
+ if [ "$opnfvlab" != "default" ]; then
+ sed -i "s/cpu_pin_set: all/cpu_pin_set: 2-${max},^${max}/g" default_deployment_config.yaml
+ else
+ sed -i "s/cpu_pin_set: all/cpu_pin_set: 1/g" default_deployment_config.yaml
+ fi
fi
case "$opnfvlab" in
{% endif %}
options:
{% if os.ha.mode == 'ha' %}
- innodb-buffer-pool-size: 16M
- max-connections: 200
+ innodb-buffer-pool-size: 128M
+ max-connections: 128M
{% else %}
innodb-buffer-pool-size: 1G
max-connections: 4000
{% if opnfv.storage_dict.ceph is defined %}
ceph-osd-replication-count: {{ unit_ceph_qty() }}
{% endif %}
-{% if os.beta.huge_pages %}
- hugepages: "50%"
+ hugepages: "2048"
+{% endif %}
+{% if os.beta.cpu_pin %}
+ vcpu-pin-set: "{{ os.beta.cpu_pin_set }}"
{% endif %}
{% if os.lxd %}
virt-type: lxd
config['os']['network']['sfc'] = True
if 'dpdk' in features:
config['os']['network']['dpdk'] = True
+ config['os']['beta']['huge_pages'] = True
+ config['os']['beta']['cpu_pin'] = True
if 'bgpvpn' in features:
config['os']['network']['bgpvpn'] = True
if 'odll3' in features:
config['os']['network']['odll3'] = True
if 'dishypcon' in features:
config['os']['hyperconverged'] = False
+if 'hugepages' in features:
+ config['os']['beta']['huge_pages'] = True
+ config['os']['beta']['cpu_pin'] = True
+
# Set beta option from extra
if 'publicapi' in extra:
config['os']['beta']['hacluster_ceph_radosgw'] = True
if 'hugepages' in extra:
config['os']['beta']['huge_pages'] = True
+ config['os']['beta']['cpu_pin'] = True
if 'mitaka' in extra:
config['os']['release'] = 'mitaka'
if 'trusty' in extra: