You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 Add more tuts more to come 🆙
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
Here are the recommended settings for an **8 GB RAM VPS**:
|
||||
|
||||
```ini
|
||||
[mysqld]
|
||||
# InnoDB settings
|
||||
# Set to 50-70% of total RAM.
|
||||
innodb_buffer_pool_size = 5G
|
||||
|
||||
# The number of threads writing data from the buffer pool to the disk.
|
||||
# A good starting value is 4 for modern systems.
|
||||
innodb_io_threads = 4
|
||||
|
||||
# Amount of memory for the log buffer.
|
||||
# A larger value can improve write performance for big transactions.
|
||||
innodb_log_buffer_size = 32M
|
||||
|
||||
# Query Cache settings
|
||||
# Recommended to disable since MySQL 5.7+ and deprecated in 8.0.
|
||||
query_cache_type = 0
|
||||
query_cache_size = 0
|
||||
|
||||
# Connection settings
|
||||
# Maximum number of concurrent client connections.
|
||||
# Adjust based on your expected traffic.
|
||||
max_connections = 300
|
||||
|
||||
# Other settings
|
||||
# A temporary table size limit to prevent memory exhaustion.
|
||||
tmp_table_size = 128M
|
||||
max_heap_table_size = 128M
|
||||
```
|
||||
|
||||
### Key Changes
|
||||
|
||||
* **`innodb_buffer_pool_size`**: Increased to **5 GB**. This gives the database significantly more room to cache data in RAM, which drastically improves the performance of both read and write operations.
|
||||
* **`innodb_log_buffer_size`**: Increased to **32 MB**. This improves performance when processing large write transactions.
|
||||
* **`max_connections`**: Increased to **300**. This allows your database to handle more concurrent connections, which is essential for a busy website or application.
|
||||
* **`tmp_table_size` and `max_heap_table_size`**: Increased to **128 MB**. This can improve the performance of complex queries that use temporary tables.
|
||||
Reference in New Issue
Block a user