76 Commits

Author SHA1 Message Date
87803cb7a2 Remove extraneous splits
The node.hostname should always be short.
2023-09-01 15:42:28 -04:00
d24cb8a8ef Unify and standardize inventory_hostname
This was causing some confusing conflicts, so create a new fact called
"this_node" which is inventory_hostname.split('.')[0], i.e. the short
name, and use that everywhere instead of an FQDN or true inventory
hostname.
2023-09-01 15:42:28 -04:00
4cb2d7835c Add setting bridge_mtu to config 2023-09-01 15:42:27 -04:00
6e2d661134 Adjust documentation and behaviour of cpuset
1. Detail the caveats and specific situations and ref the documentation
which will provide more details.

2. Always install the configs, but use /etc/default/ceph-osd-cpuset to
control if the script does anything or not (so, the "osd" cset set is
always active just not set in a special way.
2023-09-01 15:42:27 -04:00
7927ec4f11 Allow dynamic enabling/disabling of cset
Add a separate config to handle enable/disable on the system itself.
2023-09-01 15:42:27 -04:00
6e48d6fe84 Add Ceph OSD cpuset tuning options
Allows an administrator to set CPU pinning with the cpuset tool for Ceph
OSDs, in situations where CPU contention with VMs or other system tasks
may be negatively affecting OSD performance. This is optional, advanced
tuning and is disabled by default.
2023-09-01 15:42:27 -04:00
f25a80ff53 Add additional CMK checks 2023-09-01 15:42:26 -04:00
3d64ad2420 Typo fix 2023-09-01 15:42:26 -04:00
eaea860b61 Lower autopurge interval to 1 hour 2023-09-01 15:42:26 -04:00
524f857f56 Add some Zookeeper configuration tweaks 2023-09-01 15:42:26 -04:00
13556918d7 Disable any systemd start rate limiting
Because Zookeeper is supremely stupid (see last commit) we want to
disable start limiting. It needs to keep trying forever until it starts.
2023-09-01 15:42:26 -04:00
8eecc95f2f Ensure Zookeeper restarts itself
The Zookeeper daemon does not appear to exit with any status other than
0, even after a fatal error. Work around this.
2023-09-01 15:42:26 -04:00
b03ecf0125 Add -XX:+AlwaysPreTouch option for Zookeeper 2023-09-01 15:42:26 -04:00
b842276002 Lower keep count for Zookeeper vacuum to 3
Required to keep disk space growth down when using zookeeper_logging
functionality.
2023-09-01 15:42:26 -04:00
2d31e6c8ea Fix memory tuning issues 2023-09-01 15:42:26 -04:00
a52d4cbf37 Add Zookeeper logging configs 2023-09-01 15:42:26 -04:00
31a677b444 Fix Patroni ACL to use subnet mask 2023-09-01 15:42:26 -04:00
a2ed38b459 Add generic SR-IOV configuration 2023-09-01 15:42:26 -04:00
388db6ad1d Use IPs for Patroni configuration 2023-09-01 15:42:26 -04:00
d455b31905 Bump max connections in Zookeeper to 200 2023-09-01 15:42:26 -04:00
f105f0497c Configure Zookeeper only on Cluster address 2023-09-01 15:42:26 -04:00
0bbb91fc8b Add override custom libvirtd.service unit
This has no functional change on Buster, but on Bullseye this overrides
the stupid socket-based activation shenanigans that the default unit
tries to do, as well as the breaking replacement of the
/etc/default/libvirt variable names.
2023-09-01 15:42:26 -04:00
a77e41bf7c Remove invalid timezone entries in postgres conf 2023-09-01 15:42:25 -04:00
be94bc134f Add configurable ZK memory limits 2023-09-01 15:42:24 -04:00
2bd5cc5a25 Tune Zookeeper memory usage
Use Xms and Xmx=128M to reduce overall Zookeeper memory usage.
2023-09-01 15:42:24 -04:00
24764fe704 Don't use libjemalloc for Ceph daemons
This was an artifact of a much, much older Ceph configuration I ran, and
is not relevant with newer Ceph versions like those used in PVC.
Performance testing with Nautilus and Bluestore reveals a minimal
performance hit, and using `jemalloc` prevents cache autotuning from
being effective, so remove it.
2023-09-01 15:42:24 -04:00
bcb5962353 Add jute.maxbuffer to Zookeeper environment ops
Adds this option based on the findings of
https://github.com/python-zk/kazoo/issues/630, whereby restores of >1MB
in size would fail. This is considered an unsafe option, but given our
usecase no actual znode should ever exceed this limit; this is purely
for the large transactions that come from a `pvc task restore` action to
an empty Zookeeper instance.
2023-09-01 15:42:24 -04:00
f79fb605de Support using existing SSL certs on system
Add the additional pvc_api_ssl_cert_path and pvc_api_ssl_key_path
group_vars options, which can be used to set the SSL details to existing
files on the filesystem if desired. If these are empty (or nonexistent),
the original pvc_api_ssl_cert and pvc_api_ssl_key raw format options
will be used as they were.

Allows the administrator to use outside methods (such as Let's Encrypt)
to obtain the certs locally on the system, avoiding changes to the
group_vars and redeployment to manage SSL keys.
2023-09-01 15:42:24 -04:00
2caed2ae12 Rename remaining "pvc_prov" items to pvc_api 2023-09-01 15:42:24 -04:00
2a2d318dbc Change name of default API database
From pvcprov to pvcapi to reflect the changing use of this database.
2023-09-01 15:42:24 -04:00
8109f13386 Add additional configuration to group_vars
Also include defaults and the new pvc_vm_shutdown_timeout option.
2023-09-01 15:42:24 -04:00
72df058684 Ensure ZK prioritizes IPv4 2023-09-01 15:42:24 -04:00
457e18a850 Use FQDN for Zookeeper server entries 2023-09-01 15:42:24 -04:00
e3ad750412 Add storage components to default pvcnoded.yaml 2023-09-01 15:42:23 -04:00
92ccc0a737 Use consistent naming in patroni.yml 2023-09-01 15:42:23 -04:00
c35c58389d Use short names in PVC configs 2023-09-01 15:42:23 -04:00
157c56fd46 Use shortname for Zookeeper 2023-09-01 15:42:23 -04:00
52862f9daf Fix conditional checks with inventory_hostname 2023-09-01 15:42:23 -04:00
0e5cb688dc Use new package and file names
References parallelvirtualclient/pvc#79
2023-09-01 15:42:23 -04:00
f68ba7a735 Add bridge_device entry to config
Used to properly allow bridged networks to be formed.

Ref parallelvirtualcluster/pvc#64
2023-09-01 15:42:22 -04:00
15768130e2 Change ordering of networks in file 2023-09-01 15:42:22 -04:00
4a17a9918a Correct bad address in pvcd.yaml 2023-09-01 15:42:22 -04:00
744e3d0988 Set provisioner database in pvcd.yaml 2023-09-01 15:42:22 -04:00
45185c5a16 Change Patroni scope to just pvc 2023-09-01 15:42:22 -04:00
21c9aa3e6a Move netmask to separate config 2023-09-01 15:42:22 -04:00
f1e31ed169 Add additional API configuration 2023-09-01 15:42:22 -04:00
6ce036f61e Improve script to run ZK cleanup on all hosts 2023-09-01 15:42:22 -04:00
7689e659fe Make vacuum script more comprehensive 2023-09-01 15:42:21 -04:00
8163769183 Add check_mk check for PVC status 2023-09-01 15:42:21 -04:00
2e0d5c9d44 Improve daily vacuum script 2023-09-01 15:42:21 -04:00