This chapter provides advanced users with guidance on configuration maintenance in some scenarios.
[root@localhost ~]# zstack-ctl configure Prometheus.versionMode=2.x [root@localhost ~]# zstack-ctl restart_node
[root@localhost ~]# zstack-ctl configure Prometheus.versionMode=2.x-compatible [root@localhost ~]# zstack-ctl restart_node
[root@localhost ~]# zstack-ctl configure Prometheus.versionMode=1.8.2 [root@localhost ~]# zstack-ctl restart_node
[root@localhost ~]# zstack-ctl configure Prometheus.versionMode=none [root@localhost ~]# zstack-ctl restart_node
zstack.properties is a core configuration file of ZStack and is stored in each management node.
The zstack.properties file stores information such as the database URL, the user name and password for database access, and the IP address of the message bus. The content of the zstack.properties file in each management node is basically the same. You can obtain the path of the file by running the zstack-ctl status
command.
If you use the default installation mode, the file is stored in /usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties.
Category | Parameter | Description |
---|---|---|
Database |
| The URL and port of the database. |
DB.user = zstack | The user name of the database. | |
DB.password = REoVaLs+sSFz5WKl8KVzjPQOt0gyL7MpkkIx6PjNB6urlpkp4U1rQsDkHGekirfG | The password of the database. Default password: zstack.password.![]() | |
SFTP backup storage | SftpBackupStorageFactory.agentPort = 7171 | The port of the SFTP backup storage. |
Ansible | Ansible.cfg.forks = 100 | The forks value of Ansible. |
Ansible.cfg.host_key_checking = False | The host_key_checking value of Ansible. | |
Ansible.cfg.pipelining = True | The pipelining value of Ansible. | |
Ansible.keepHostsFileInMemory = false | Whether to reserve ansible/hosts in the memory. | |
Ansible.cfg.ssh_connection.ssh_args = -C -o ControlMaster=auto -o ControlPersist=1800s | The SSH connection parameters of Ansible. | |
Message bus | CloudBus.serverIp.0 = 10.0.5.87 | The IP address of the CloudBus server. |
Log | org.jboss.logging.provider = slf4j | The log service provider. |
Console | consoleProxyCertFile = /usr/local/zstack/zstack-ui/ui.keystore.pem | The console certificate. |
consoleProxyOverriddenIp = 172.20.11.50 | The external IP address of the console proxy. | |
consoleProxyPort = 4900 | The port of the console proxy. | |
ZWatch/SNS |
| The system endpoint for receiving ZWatch notifications. |
ZStack YUM | Ansible.var.zstack_repo = "zstack-mn,qemu-kvm-ev-mn" | The name of the YUM repository used by ZStack. |
Management node (MN) service |
| The IP address of the MN server. |
chrony | chrony.serverIp.0 = 10.0.5.87 | The IP address of the chrony server. |
Default iptables rules of a KVM host | KvmHost.iptables.rule.0 = '-I INPUT -p tcp -m tcp --dport 1234 -j ACCEPT' | The preset iptables rules of the KVM compute node. |
KvmHost.iptables.rule.1 = '-I INPUT -p tcp -m tcp --dport 2345 -j ACCEPT' | The preset iptables rules of the KVM compute node. | |
ImageStore server | imagestore.backupstorage.primary.storage.priority = [{\"PS\":\"Ceph\"\, \"priority\":\"5\"}\, {\"PS\":\"LocalStorage\"\, \"priority\":\"10\"}] | Specifies the primary storage allocation priority for backup storages with the ImageStore type. The smaller the number, the higher the priority. |
ApiTimeout.org.zstack.header.image.APIAddImageMsg = timeout::3h
/usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties
, and set the following parameters in the zstack.properties configuration file:Ldap.addServer.connectTimeout = XX
# Set the AD/LDAP connection timeout.
SNS.addEmailPlatform.connectTimeout = XX
# Set the email server connection timeout.
SNS.addEmailPlatform.readTimeout = XX
# Set the data read timeout for an email server.
[root@localhost ~]# zstack-ctl configure Ldap.addServer.connectTimeout = 10000 [root@localhost ~]# zstack-ctl configure SNS.addEmailPlatform.connectTimeout = 10000 [root@localhost ~]# zstack-ctl configure SNS.addEmailPlatform.readTimeout = 10000
After the settings are completed, restart the management node by running the zstack-ctl restart_node
command to take effect.
/usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties
, and set the following parameter in the zstack.properties configuration file:Kvm.ivshmem.dev.prefix = nu_fsec-$prefix$VMUUID # Set a name for the shared memory.
/usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties
, and set the following parameters in the zstack.properties configuration file:InfluxDB.query.alarmData.count.maxThreadNum = 30 # Set the maximum number of concurrent threads for querying the total count of alarm messages triggered by the resource alarm. Default value: 30.
InfluxDB.query.eventData.count.maxThreadNum = 30 # Set the maximum number of concurrent threads for querying the total count of alarm messages triggered by the resource alarm. Default value: 30.
zstack-hamon
port for the monitoring service in the multi-MN HA scenario. Method:/usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties
, and set the following parameter in the zstack.properties configuration file:Prometheus.zsha2ExporterPort = 18081 # Set the zstack-hamon
port for the monitoring service in the multi-MN HA scenario. # By default, port 18081 is the exporter of Prometheus.
/usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties
, and set the following parameter in the zstack.properties configuration file:imagestore.backupstorage.primary.storage.priority = [\{\"PS\":\"Ceph\"\, \"priority\":\"10\"}\, \{\"PS\":\"LocalStorage\"\, \"priority\":\"1\"}] # With this configuration, the primary storage of the local storage type is used for VM instances.
/usr/local/zstack/apache-tomcat/webapps/zstack/WEB-INF/classes/zstack.properties
, and set the following parameter in the zstack.properties configuration file:locale = en
Back to Top
Email Us
contact@zstack.ioEmail Us
contact@zstack.ioEmail Us
contact@zstack.ioThe download link is sent to your email address.
If you don't see it, check your spam folder, subscription folder, or AD folder. After receiving the email, click the URL to download the documentation.Thank you for using ZStack products and services.
Submit successfully.
We'll connect soon.Thank you for using ZStack products and services.