Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize PostgreSQL parameters for SSD storage #536

Merged
merged 1 commit into from
Dec 26, 2023
Merged

Conversation

vitabaks
Copy link
Owner

Purpose

This PR introduces several adjustments to the PostgreSQL configuration to optimize performance for environments using SSD storage.

Key Changes

  • random_page_cost is set to 1.1, down from the default suited for HDDs, to leverage the faster random read capabilities of SSDs.
  • effective_io_concurrency is increased to 200 to take advantage of SSD's higher parallel I/O capabilities. This is a significant change from the default setting, which is optimized for traditional HDDs.

These changes are aimed at harnessing the full potential of SSDs, ensuring better performance of the database system, especially in high I/O demand environments.

Adjust default PostgreSQL configuration parameters to enhance performance on SSD storage. Key changes include reducing 'random_page_cost' to 1.1 to reflect the faster random access of SSDs and increasing 'effective_io_concurrency' to 200 to utilize the higher I/O parallelism of SSDs.
@vitabaks vitabaks self-assigned this Dec 26, 2023
@vitabaks vitabaks merged commit 8820e7a into master Dec 26, 2023
17 checks passed
@vitabaks vitabaks deleted the pg-parameters-ssd branch December 26, 2023 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant