Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F104455572
raw-paste-data.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
CWilliams-WMF
Sep 23 2026, 5:14 PM
2026-09-23 17:14:08 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
raw-paste-data.txt
View Options
diff --git a/spicerack/mysql.py b/spicerack/mysql.py
index 941b05a..6a98110 100644
--- a/spicerack/mysql.py
+++ b/spicerack/mysql.py
@@ -7,6 +7,7 @@ from dataclasses import dataclass
from datetime import UTC, datetime, timedelta
from decimal import Decimal
from enum import Enum
+from os import getenv
from pathlib import Path
from time import sleep
from typing import Any, Optional, Union
@@ -26,7 +27,8 @@ from spicerack.remote import Remote, RemoteExecutionError, RemoteHosts, RemoteHo
REPLICATION_ROLES: tuple[str, ...] = ("master", "slave", "standalone")
"""Valid replication roles."""
-CORE_SECTIONS: tuple[str, ...] = (
+
+DEFAULT_CORE_SECTIONS: tuple[str, ...] = (
"s6",
"s5",
"s2",
@@ -41,6 +43,14 @@ CORE_SECTIONS: tuple[str, ...] = (
"es6",
"es7",
)
+
+CORE_SECTIONS: tuple[str, ...] = tuple(
+ getenv(
+ "SPICERACK_MYSQL_CORE_SECTIONS",
+ ",".join(DEFAULT_CORE_SECTIONS)
+ ).split(","),
+)
+
"""Valid MySQL RW core sections (external storage RO, parser cache, x2 and misc sections are not included here).
They are ordered from less impactful if anything goes wrong to most impactful.
"""
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28423948
Default Alt Text
raw-paste-data.txt (1 KB)
Attached To
Mode
P96516 (An Untitled Masterwork)
Attached
Detach File
Event Timeline
Log In to Comment