2019-03-10 20:40:45 -04:00
|
|
|
# pvcd cluster configuration file example
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# Copy this example to /etc/pvc/pvcd.conf and edit to your needs
|
|
|
|
|
|
|
|
pvc:
|
|
|
|
# node: The (short) hostname of the node, set during provisioning
|
|
|
|
node: pvc-hv1
|
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-03-10 20:40:45 -04:00
|
|
|
# cluster: Cluster-level configuration
|
|
|
|
cluster:
|
|
|
|
# coordinators: The list of cluster coordinator hostnames
|
|
|
|
coordinators:
|
|
|
|
- pvc-hv1
|
|
|
|
- pvc-hv2
|
|
|
|
- pvc-hv3
|
|
|
|
# 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
|
|
|
|
# system: Local PVC instance configuration
|
|
|
|
system:
|
|
|
|
# fencing: Node fencing configuration
|
|
|
|
fencing:
|
|
|
|
# intervals: Intervals for fencing determination
|
|
|
|
intervals:
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
host: pvc-hv1-lom
|
|
|
|
# user: Local system IPMI username
|
|
|
|
user: admin
|
|
|
|
# pass: Local system IPMI password
|
|
|
|
pass: Passw0rd
|
|
|
|
# migration: Migration option configuration
|
|
|
|
migration:
|
|
|
|
# target_selector: Criteria to select the ideal migration target, options: mem, load, vcpus, vms
|
|
|
|
target_selector: mem
|
|
|
|
# configuration: Local system configurations
|
|
|
|
configuration:
|
|
|
|
# directories: PVC system directories
|
|
|
|
directories:
|
|
|
|
# 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
|
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
|
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:
|
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
|
2019-06-17 23:44:41 -04:00
|
|
|
# address: Upstream interface IP address, options: None, by-id, <static>/<mask>
|
2019-06-17 23:41:07 -04:00
|
|
|
address: None
|
|
|
|
# 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
|
2019-06-17 23:44:41 -04:00
|
|
|
# address: Cluster (VNIC) interface IP address, options: None, 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
|
2019-06-17 23:44:41 -04:00
|
|
|
# address: Storage (Ceph OSD) interface IP address, options: None, by-id, <static>/<mask>
|
2019-06-17 23:41:07 -04:00
|
|
|
address: by-id
|