Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3352389
D12322.id41112.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12322.id41112.diff
View Options
diff --git a/services/terraform/self-host/aws_db.tf b/services/terraform/self-host/aws_db.tf
--- a/services/terraform/self-host/aws_db.tf
+++ b/services/terraform/self-host/aws_db.tf
@@ -36,9 +36,58 @@
vpc_security_group_ids = [aws_security_group.keyserver_mariadb_security_group.id]
username = local.secrets["mariaDB"]["username"]
password = local.secrets["mariaDB"]["password"]
- parameter_group_name = "default.mariadb10.11"
+ parameter_group_name = aws_db_parameter_group.mariadb_parameter_group.name
storage_encrypted = true
publicly_accessible = true
port = 3307
skip_final_snapshot = true
}
+
+# MariaDB Parameter Group
+resource "aws_db_parameter_group" "mariadb_parameter_group" {
+ name = "mariadb-parameter-group"
+ family = "mariadb10.11"
+
+ parameter {
+ apply_method = "pending-reboot"
+ name = "performance_schema"
+ value = "1"
+ }
+
+ parameter {
+ apply_method = "immediate"
+ name = "max_allowed_packet"
+ # 256 MiB: (1024 * 1024 * 256)
+ value = "268435456"
+ }
+
+ parameter {
+ apply_method = "immediate"
+ name = "local_infile"
+ value = "0"
+ }
+
+ parameter {
+ apply_method = "immediate"
+ name = "sql_mode"
+ value = "STRICT_ALL_TABLES"
+ }
+
+ parameter {
+ apply_method = "pending-reboot"
+ name = "innodb_buffer_pool_size"
+ value = "{DBInstanceClassMemory*3/4}"
+ }
+
+ parameter {
+ apply_method = "pending-reboot"
+ name = "innodb_ft_min_token_size"
+ value = "1"
+ }
+
+ parameter {
+ apply_method = "immediate"
+ name = "innodb_ft_enable_stopword"
+ value = "0"
+ }
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 5:42 AM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2573602
Default Alt Text
D12322.id41112.diff (1 KB)
Attached To
Mode
D12322: [terraform] MariaDB RDS config options
Attached
Detach File
Event Timeline
Log In to Comment