fix: lower Pimox worker CPU default
This commit is contained in:
parent
9c17b9e13c
commit
4d93061728
|
|
@ -138,7 +138,7 @@ Override `TF_VAR_pimox_template_scsi0`,
|
|||
`./jeannie up` also creates or reuses worker clones after the template exists. It
|
||||
defaults to one worker, VMID `9010`, name `pimox-worker-01`, deterministic
|
||||
locally administered MAC address, 1 socket
|
||||
with 2 cores, 8 GiB RAM, `opi5_ssd` clone storage, and qemu-guest-agent IP
|
||||
with 1 core, 8 GiB RAM, `opi5_ssd` clone storage, and qemu-guest-agent IP
|
||||
discovery when that Pimox storage is available. New workers are full clones
|
||||
created with `qm clone --storage`, so the template can remain on `local` while
|
||||
worker disks land on the Orange Pi SSD-backed non-local Pimox datastore. Keep
|
||||
|
|
|
|||
|
|
@ -221,6 +221,8 @@ pimox:
|
|||
template_vmid: 9000
|
||||
worker_base_vmid: 9010
|
||||
default_worker_count: 2
|
||||
control_plane_cores: 2
|
||||
worker_cores: 1
|
||||
worker_name_prefix: pimox-worker
|
||||
|
||||
ai_gateway:
|
||||
|
|
|
|||
|
|
@ -69,6 +69,8 @@ mapping = {
|
|||
"ai_gateway.knowledge_index_dir": "LAB_AI_KNOWLEDGE_INDEX_DIR",
|
||||
"pimox.worker_base_vmid": "LAB_PIMOX_WORKER_BASE_VMID",
|
||||
"pimox.default_worker_count": "LAB_PIMOX_WORKER_COUNT",
|
||||
"pimox.control_plane_cores": "LAB_PIMOX_CONTROL_PLANE_CORES",
|
||||
"pimox.worker_cores": "LAB_PIMOX_WORKER_CORES",
|
||||
}
|
||||
|
||||
def flatten(document, prefix=""):
|
||||
|
|
@ -147,6 +149,8 @@ profile_mapping = {
|
|||
"pimox.storage": ("LAB_CLUSTER_PIMOX_STORAGE", "hosts.opi5_pimox.worker_storage"),
|
||||
"pimox.control_plane_vmid": ("LAB_CLUSTER_PIMOX_CONTROL_PLANE_VMID", None),
|
||||
"pimox.worker_count": ("LAB_CLUSTER_PIMOX_WORKER_COUNT", "pimox.default_worker_count"),
|
||||
"pimox.control_plane_cores": ("LAB_PIMOX_CONTROL_PLANE_CORES", "pimox.control_plane_cores"),
|
||||
"pimox.worker_cores": ("LAB_PIMOX_WORKER_CORES", "pimox.worker_cores"),
|
||||
"pimox.worker_static_ips": ("LAB_CLUSTER_PIMOX_WORKER_STATIC_IPS", None),
|
||||
}
|
||||
for relative_path, (env_name, fallback_path) in profile_mapping.items():
|
||||
|
|
|
|||
|
|
@ -70,6 +70,8 @@ mapping = {
|
|||
"ai_gateway.knowledge_index_dir": "LAB_AI_KNOWLEDGE_INDEX_DIR",
|
||||
"pimox.worker_base_vmid": "LAB_PIMOX_WORKER_BASE_VMID",
|
||||
"pimox.default_worker_count": "LAB_PIMOX_WORKER_COUNT",
|
||||
"pimox.control_plane_cores": "LAB_PIMOX_CONTROL_PLANE_CORES",
|
||||
"pimox.worker_cores": "LAB_PIMOX_WORKER_CORES",
|
||||
}
|
||||
|
||||
def flatten(document, prefix=""):
|
||||
|
|
@ -148,6 +150,8 @@ profile_mapping = {
|
|||
"pimox.storage": ("LAB_CLUSTER_PIMOX_STORAGE", "hosts.opi5_pimox.worker_storage"),
|
||||
"pimox.control_plane_vmid": ("LAB_CLUSTER_PIMOX_CONTROL_PLANE_VMID", None),
|
||||
"pimox.worker_count": ("LAB_CLUSTER_PIMOX_WORKER_COUNT", "pimox.default_worker_count"),
|
||||
"pimox.control_plane_cores": ("LAB_PIMOX_CONTROL_PLANE_CORES", "pimox.control_plane_cores"),
|
||||
"pimox.worker_cores": ("LAB_PIMOX_WORKER_CORES", "pimox.worker_cores"),
|
||||
"pimox.worker_static_ips": ("LAB_CLUSTER_PIMOX_WORKER_STATIC_IPS", None),
|
||||
}
|
||||
for relative_path, (env_name, fallback_path) in profile_mapping.items():
|
||||
|
|
@ -3071,7 +3075,7 @@ run_pimox_pipeline() {
|
|||
local worker_node_prefix="${LAB_PIMOX_WORKER_NODE_PREFIX:-pimox-worker}"
|
||||
local worker_key_prefix="${LAB_PIMOX_WORKER_KEY_PREFIX:-pimox}"
|
||||
local worker_skip_indexes="${LAB_PIMOX_SKIP_WORKER_INDEXES:-}"
|
||||
local worker_cores="${LAB_PIMOX_WORKER_CORES:-2}"
|
||||
local worker_cores="${LAB_PIMOX_WORKER_CORES:-1}"
|
||||
local worker_memory="${LAB_PIMOX_WORKER_MEMORY:-8192}"
|
||||
local worker_cpu_affinities="${LAB_PIMOX_WORKER_CPU_AFFINITIES:-}"
|
||||
local pimox_kvm_cpuset="${LAB_PIMOX_KVM_CPUSET:-4-7}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue