instance of API service spawned up.
Change-Id: Ia1d5b542c3f97cbdc7b5523fc8d45b90ed836aa2
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
cephdisk=`grep "ceph-disk" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
osdomname=`grep "os-domain-name" deployconfig.yaml | cut -d ':' -f 2 | sed -e 's/ //'`
fi
+
+ workmutiple=`maas maas nodes list | grep "cpu_count" | cut -d ':' -f 2 | sed -e 's/ //' | tr ',' ' '`
+ max=0
+ for v in ${workmutiple[@]}; do
+ if (( $v > $max )); then max=$v; fi;
+ done
+ echo $max
+
+ if [ "$max" -lt 8 ];then
+ workmutiple=1
+ elif [ "$max" -lt 32 ]; then
+ workmutiple=0.25
+ elif [ "$max" -lt 72 ]; then
+ workmutiple=0.1
+ else
+ workmutiple=0.05
+ fi
+ sed -i "s/worker-multiplier: 2/worker-multiplier: ${workmutiple}/g" default_deployment_config.yaml
fi
case "$opnfvlab" in
num_units: {{ unit_qty() }}
options:
{% if os.ha.mode == 'ha' %}
- haproxy-server-timeout: 10000
- haproxy-client-timeout: 10000
- haproxy-queue-timeout: 10000
- haproxy-connect-timeout: 10000
vip: {{ opnfv.vip.ceilometer }}
{% endif %}
{% if os.beta.public_api %}
num_units: {{ unit_qty() }}
options:
{% if os.ha.mode == 'ha' %}
- haproxy-server-timeout: 10000
- haproxy-client-timeout: 10000
- haproxy-queue-timeout: 10000
- haproxy-connect-timeout: 10000
vip: {{ opnfv.vip.cinder }}
{% endif %}
{% if os.beta.public_api %}
num_units: {{ unit_qty() }}
options:
{% if os.ha.mode == 'ha' %}
- haproxy-server-timeout: 10000
- haproxy-client-timeout: 10000
- haproxy-queue-timeout: 10000
- haproxy-connect-timeout: 10000
vip: {{ opnfv.vip.glance }}
{% endif %}
{% if os.beta.public_api %}
admin-password: {{ opnfv.admin_password | default(os.admin.password) }}
admin-token: {{ os.admin.name }}
{% if os.ha.mode == 'ha' %}
- haproxy-server-timeout: 10000
- haproxy-client-timeout: 10000
- haproxy-queue-timeout: 10000
- haproxy-connect-timeout: 10000
vip: {{ opnfv.vip.keystone }}
{% endif %}
{% if os.beta.public_api %}
neutron-security-groups: true
{% if os.ha.mode == 'ha' %}
vip: {{ opnfv.vip.neutron }}
- haproxy-server-timeout: 10000
- haproxy-client-timeout: 10000
- haproxy-queue-timeout: 10000
- haproxy-connect-timeout: 10000
{% endif %}
{% if os.network.controller == 'nosdn' %}
flat-network-providers: "*"
neutron-external-network: ext-net
service-guard: true
{% if os.ha.mode == 'ha' %}
- haproxy-server-timeout: 10000
- haproxy-client-timeout: 10000
- haproxy-queue-timeout: 10000
- haproxy-connect-timeout: 10000
vip: {{ opnfv.vip.nova }}
{% endif %}
{% if opnfv.domain is defined %}
secret: admin
webroot: /
{% if os.ha.mode == 'ha' %}
- haproxy-server-timeout: 10000
- haproxy-client-timeout: 10000
- haproxy-queue-timeout: 10000
- haproxy-connect-timeout: 10000
vip: {{ opnfv.vip.dashboard }}
{% endif %}
{% if os.beta.public_api %}
{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
+{% if os.ha.mode == 'ha' %}
+{% if os.api.haproxy_timeout %}
+ haproxy-server-timeout: {{ os.api.haproxy_timeout }}
+ haproxy-client-timeout: {{ os.api.haproxy_timeout }}
+ haproxy-queue-timeout: {{ os.api.haproxy_timeout }}
+ haproxy-connect-timeout: {{ os.api.haproxy_timeout }}
+{% endif %}
+{% endif %}
+{% if os.api.worker_multiplier %}
+ worker-multiplier: {{ os.api.worker_multiplier }}
+{% endif %}
{% if os.network.dvr %}
enable-dvr: true
{% endif %}
cluster_size: 3
lxd: False
region: RegionOne
+ api:
+ worker_multiplier: 2
+ haproxy_timeout: 10000
admin:
role: admin
name: admin
status=`juju action do heat/0 domain-setup`
echo $status
juju expose ceph-radosgw
- juju ssh ceph/0 \ 'sudo radosgw-admin user create --uid="ubuntu" --display-name="Ubuntu Ceph"'
+ #juju ssh ceph/0 \ 'sudo radosgw-admin user create --uid="ubuntu" --display-name="Ubuntu Ceph"'
echo "...... deployment finishing ......."
}