2019-07-06 02:24:28 -04:00
|
|
|
---
|
2020-02-08 19:16:19 -05:00
|
|
|
# pvcnoded configuration file example
|
2019-03-10 20:40:45 -04:00
|
|
|
#
|
|
|
|
# This configuration file specifies details for this node in PVC. Multiple node
|
|
|
|
# blocks can be added but only the one matching the current system nodename will
|
|
|
|
# be used by the local daemon. Default values are not supported; the values in
|
|
|
|
# this sample configuration are considered defaults and, with adjustment of the
|
|
|
|
# nodename section and coordinators list, can be used as-is on a Debian system.
|
|
|
|
#
|
2020-02-08 19:16:19 -05:00
|
|
|
# Copy this example to /etc/pvc/pvcnoded.conf and edit to your needs
|
2019-03-10 20:40:45 -04:00
|
|
|
|
|
|
|
pvc:
|
|
|
|
# node: The (short) hostname of the node, set during provisioning
|
2020-01-12 21:33:15 -05:00
|
|
|
node: pvchv1
|
2019-08-01 11:22:27 -04:00
|
|
|
# debug: Enable or disable debug output
|
|
|
|
debug: False
|
2019-03-11 01:44:26 -04:00
|
|
|
# functions: The daemon functions to enable
|
|
|
|
functions:
|
|
|
|
# enable_hypervisor: Enable or disable hypervisor functionality
|
|
|
|
# This should never be False except in very advanced usecases
|
|
|
|
enable_hypervisor: True
|
|
|
|
# enable_networking: Enable or disable virtual networking and routing functionality
|
|
|
|
enable_networking: True
|
|
|
|
# enable_storage: Enable or disable Ceph storage management functionality
|
|
|
|
enable_storage: True
|
2019-07-06 02:42:56 -04:00
|
|
|
# enable_api: Enable or disable the API client, if installed, when node is Primary
|
|
|
|
enable_api: True
|
2019-03-10 20:40:45 -04:00
|
|
|
# cluster: Cluster-level configuration
|
|
|
|
cluster:
|
|
|
|
# coordinators: The list of cluster coordinator hostnames
|
|
|
|
coordinators:
|
2020-01-12 21:33:15 -05:00
|
|
|
- pvchv1
|
|
|
|
- pvchv2
|
|
|
|
- pvchv3
|
2019-03-10 20:40:45 -04:00
|
|
|
# networks: Cluster-level network configuration
|
2019-03-11 01:44:26 -04:00
|
|
|
# OPTIONAL if enable_networking: False
|
2019-03-10 20:40:45 -04:00
|
|
|
networks:
|
|
|
|
# upstream: Upstream routed network for in- and out-bound upstream networking
|
|
|
|
upstream:
|
|
|
|
# domain: Upstream domain name, may be None
|
|
|
|
domain: "mydomain.net"
|
|
|
|
# network: Upstream network block
|
|
|
|
network: "1.1.1.0/24"
|
|
|
|
# floating_ip: Upstream floating IP address for the primary coordinator
|
|
|
|
floating_ip: "1.1.1.10/24"
|
2019-03-17 00:36:19 -04:00
|
|
|
# gateway: Upstream static default gateway, if applicable
|
|
|
|
gateway: "1.1.1.1"
|
2019-03-10 20:40:45 -04:00
|
|
|
# cluster: Cluster internal network for node communication and client virtual networks
|
|
|
|
cluster:
|
|
|
|
# domain: Cluster internal domain name
|
|
|
|
domain: "pvc.local"
|
|
|
|
# network: Cluster internal network block
|
|
|
|
network: "10.255.0.0/24"
|
|
|
|
# floating_ip: Cluster internal floating IP address for the primary coordinator
|
|
|
|
floating_ip: "10.255.0.254/24"
|
|
|
|
# storage: Cluster internal network for storage traffic
|
|
|
|
storage:
|
|
|
|
# domain: Cluster storage domain name
|
|
|
|
domain: "pvc.storage"
|
|
|
|
# network: Cluster storage network block
|
|
|
|
network: "10.254.0.0/24"
|
|
|
|
# floating_ip: Cluster storage floating IP address for the primary coordinator
|
2019-03-11 01:44:26 -04:00
|
|
|
floating_ip: "10.254.0.254/24"
|
2019-03-10 20:40:45 -04:00
|
|
|
# coordinator: Coordinator-specific configuration
|
2019-03-11 01:44:26 -04:00
|
|
|
# OPTIONAL if enable_networking: False
|
2019-03-10 20:40:45 -04:00
|
|
|
coordinator:
|
|
|
|
# dns: DNS aggregator subsystem
|
|
|
|
dns:
|
2019-05-20 22:40:07 -04:00
|
|
|
# database: Patroni PostgreSQL database configuration
|
2019-03-10 20:40:45 -04:00
|
|
|
database:
|
2019-05-20 22:40:07 -04:00
|
|
|
# host: PostgreSQL hostname, invariably 'localhost'
|
2019-03-10 20:40:45 -04:00
|
|
|
host: localhost
|
2019-05-20 22:40:07 -04:00
|
|
|
# port: PostgreSQL port, invariably 'localhost'
|
|
|
|
port: 5432
|
|
|
|
# name: PostgreSQL database name, invariably 'pvcdns'
|
2019-03-10 20:40:45 -04:00
|
|
|
name: pvcdns
|
2019-05-20 22:40:07 -04:00
|
|
|
# user: PostgreSQL username, invariable 'pvcdns'
|
2019-03-10 20:40:45 -04:00
|
|
|
user: pvcdns
|
2019-05-20 22:40:07 -04:00
|
|
|
# pass: PostgreSQL user password, randomly generated
|
2019-03-10 20:40:45 -04:00
|
|
|
pass: pvcdns
|
2019-12-14 15:55:30 -05:00
|
|
|
# metadata: Metadata API subsystem
|
|
|
|
metadata:
|
|
|
|
# database: Patroni PostgreSQL database configuration
|
|
|
|
database:
|
|
|
|
# host: PostgreSQL hostname, invariably 'localhost'
|
|
|
|
host: localhost
|
|
|
|
# port: PostgreSQL port, invariably 'localhost'
|
|
|
|
port: 5432
|
2020-08-25 01:59:35 -04:00
|
|
|
# name: PostgreSQL database name, invariably 'pvcapi'
|
|
|
|
name: pvcapi
|
|
|
|
# user: PostgreSQL username, invariable 'pvcapi'
|
|
|
|
user: pvcapi
|
2019-12-14 15:55:30 -05:00
|
|
|
# pass: PostgreSQL user password, randomly generated
|
2020-08-25 01:59:35 -04:00
|
|
|
pass: pvcapi
|
2019-03-10 20:40:45 -04:00
|
|
|
# system: Local PVC instance configuration
|
|
|
|
system:
|
2019-07-28 19:33:08 -04:00
|
|
|
# intervals: Intervals for keepalives and fencing
|
|
|
|
intervals:
|
2020-08-20 21:26:12 -04:00
|
|
|
# vm_shutdown_timeout: Number of seconds for a VM to 'shutdown' before being forced off
|
|
|
|
vm_shutdown_timeout: 180
|
2019-07-28 19:33:08 -04:00
|
|
|
# keepalive_interval: Number of seconds between keepalive/status updates
|
|
|
|
keepalive_interval: 5
|
|
|
|
# fence_intervals: Number of keepalive_intervals to declare a node dead and fence it
|
|
|
|
fence_intervals: 6
|
|
|
|
# suicide_intervals: Numer of keepalive_intervals before a node considers itself dead and self-fences, 0 to disable
|
|
|
|
suicide_intervals: 0
|
2019-03-10 20:40:45 -04:00
|
|
|
# fencing: Node fencing configuration
|
|
|
|
fencing:
|
|
|
|
# actions: Actions to take after a fence trigger
|
|
|
|
actions:
|
|
|
|
# successful_fence: Action to take after successfully fencing a node, options: migrate, None
|
|
|
|
successful_fence: migrate
|
|
|
|
# failed_fence: Action to take after failing to fence a node, options: migrate, None
|
|
|
|
failed_fence: None
|
|
|
|
# ipmi: Local system IPMI options
|
|
|
|
ipmi:
|
|
|
|
# host: Hostname/IP of the local system's IPMI interface, must be reachable
|
2020-01-12 21:33:15 -05:00
|
|
|
host: pvchv1-lom
|
2019-03-10 20:40:45 -04:00
|
|
|
# user: Local system IPMI username
|
|
|
|
user: admin
|
|
|
|
# pass: Local system IPMI password
|
|
|
|
pass: Passw0rd
|
|
|
|
# migration: Migration option configuration
|
|
|
|
migration:
|
2022-11-15 15:45:59 -05:00
|
|
|
# target_selector: Criteria to select the ideal migration target, options: mem, memprov, load, vcpus, vms
|
2019-03-10 20:40:45 -04:00
|
|
|
target_selector: mem
|
|
|
|
# configuration: Local system configurations
|
|
|
|
configuration:
|
|
|
|
# directories: PVC system directories
|
|
|
|
directories:
|
2023-02-13 03:06:06 -05:00
|
|
|
# plugin_directory: Directory containing node monitoring plugins
|
|
|
|
plugin_directory: "/usr/share/pvc/plugins"
|
2019-03-10 20:40:45 -04:00
|
|
|
# dynamic_directory: Temporary in-memory directory for active configurations
|
|
|
|
dynamic_directory: "/run/pvc"
|
|
|
|
# log_directory: Logging directory
|
|
|
|
log_directory: "/var/log/pvc"
|
2019-04-11 19:06:06 -04:00
|
|
|
# console_log_directory: Libvirt console logging directory
|
|
|
|
console_log_directory: "/var/log/libvirt"
|
2019-03-10 20:40:45 -04:00
|
|
|
# logging: PVC logging configuration
|
|
|
|
logging:
|
|
|
|
# file_logging: Enable or disable logging to files under log_directory
|
|
|
|
file_logging: True
|
|
|
|
# stdout_logging: Enable or disable logging to stdout (i.e. journald)
|
|
|
|
stdout_logging: True
|
2021-07-18 17:03:57 -04:00
|
|
|
# zookeeper_logging: Enable ot disable logging to Zookeeper (for `pvc node log` functionality)
|
|
|
|
zookeeper_logging: True
|
2019-07-10 21:39:25 -04:00
|
|
|
# log_colours: Enable or disable ANSI colours in log output
|
|
|
|
log_colours: True
|
|
|
|
# log_dates: Enable or disable date strings in log output
|
|
|
|
log_dates: True
|
2019-06-18 12:44:07 -04:00
|
|
|
# log_keepalives: Enable or disable keepalive logging
|
|
|
|
log_keepalives: True
|
2019-06-18 19:54:42 -04:00
|
|
|
# log_keepalive_cluster_details: Enable or disable node status logging during keepalive
|
|
|
|
log_keepalive_cluster_details: True
|
|
|
|
# log_keepalive_storage_details: Enable or disable node storage logging during keepalive
|
|
|
|
log_keepalive_storage_details: True
|
2019-04-11 19:06:06 -04:00
|
|
|
# console_log_lines: Number of console log lines to store in Zookeeper per VM
|
|
|
|
console_log_lines: 1000
|
2021-07-18 17:03:57 -04:00
|
|
|
# node_log_lines: Number of node log lines to store in Zookeeper per node
|
|
|
|
node_log_lines: 2000
|
2019-03-10 20:40:45 -04:00
|
|
|
# networking: PVC networking configuration
|
2019-03-11 01:44:26 -04:00
|
|
|
# OPTIONAL if enable_networking: False
|
2019-03-10 20:40:45 -04:00
|
|
|
networking:
|
2021-07-18 17:03:57 -04:00
|
|
|
# bridge_device: Underlying device to use for bridged vLAN networks; usually the device of <cluster>
|
2020-01-06 14:44:56 -05:00
|
|
|
bridge_device: ens4
|
2021-10-09 17:02:27 -04:00
|
|
|
# bridge_mtu: The MTU of the underlying device used for bridged vLAN networks, and thus the maximum
|
|
|
|
# MTU of the overlying bridge devices.
|
|
|
|
bridge_mtu: 1500
|
2021-06-15 22:42:59 -04:00
|
|
|
# sriov_enable: Enable or disable (default if absent) SR-IOV network support
|
|
|
|
sriov_enable: False
|
|
|
|
# sriov_device: Underlying device(s) to use for SR-IOV networks; can be bridge_device or other NIC(s)
|
|
|
|
sriov_device:
|
|
|
|
# The physical device name
|
|
|
|
- phy: ens1f1
|
|
|
|
# The preferred MTU of the physical device; OPTIONAL - defaults to the interface default if unset
|
|
|
|
mtu: 9000
|
|
|
|
# The number of VFs to enable on this device
|
|
|
|
# NOTE: This defines the maximum number of VMs which can be provisioned on this physical device; VMs
|
|
|
|
# are allocated to these VFs manually by the administrator and thus all nodes should have the
|
|
|
|
# same number
|
|
|
|
# NOTE: This value cannot be changed at runtime on Intel(R) NICs; the node will need to be restarted
|
|
|
|
# if this value changes
|
|
|
|
vfcount: 8
|
2019-06-17 23:41:07 -04:00
|
|
|
# upstream: Upstream physical interface device
|
|
|
|
upstream:
|
2019-06-17 23:44:41 -04:00
|
|
|
# device: Upstream interface device name
|
|
|
|
device: ens4
|
2019-06-17 23:41:07 -04:00
|
|
|
# mtu: Upstream interface MTU; use 9000 for jumbo frames (requires switch support)
|
|
|
|
mtu: 1500
|
2021-08-21 02:46:11 -04:00
|
|
|
# address: Upstream interface IP address, options: by-id, <static>/<mask>
|
|
|
|
address: by-id
|
2019-06-17 23:41:07 -04:00
|
|
|
# cluster: Cluster (VNIC) physical interface device
|
|
|
|
cluster:
|
2019-06-17 23:44:41 -04:00
|
|
|
# device: Cluster (VNIC) interface device name
|
|
|
|
device: ens4
|
2019-06-17 23:41:07 -04:00
|
|
|
# mtu: Cluster (VNIC) interface MTU; use 9000 for jumbo frames (requires switch support)
|
|
|
|
mtu: 1500
|
2021-08-21 02:46:11 -04:00
|
|
|
# address: Cluster (VNIC) interface IP address, options: by-id, <static>/<mask>
|
2019-06-17 23:41:07 -04:00
|
|
|
address: by-id
|
|
|
|
# storage: Storage (Ceph OSD) physical interface device
|
|
|
|
storage:
|
2019-06-17 23:44:41 -04:00
|
|
|
# device: Storage (Ceph OSD) interface device name
|
|
|
|
device: ens4
|
2019-06-17 23:41:07 -04:00
|
|
|
# mtu: Storage (Ceph OSD) interface MTU; use 9000 for jumbo frames (requires switch support)
|
|
|
|
mtu: 1500
|
2021-08-21 02:46:11 -04:00
|
|
|
# address: Storage (Ceph OSD) interface IP address, options: by-id, <static>/<mask>
|
2019-06-17 23:41:07 -04:00
|
|
|
address: by-id
|
2020-06-06 21:12:51 -04:00
|
|
|
# storage; PVC storage configuration
|
|
|
|
# OPTIONAL if enable_storage: False
|
|
|
|
storage:
|
|
|
|
# ceph_config_file: The config file containing the Ceph cluster configuration
|
|
|
|
ceph_config_file: "/etc/ceph/ceph.conf"
|
|
|
|
# ceph_admin_keyring: The file containing the Ceph client admin keyring
|
|
|
|
ceph_admin_keyring: "/etc/ceph/ceph.client.admin.keyring"
|