本頁面說明如何使用
RPM 部署選項,安裝 AlloyDB Omni
18.1.0 版。
選擇其他部署選項。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
虛擬機上的 AlloyDB Omni 效能調整參數
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
選取文件版本:
本文說明效能調整參數,可提升 VM 上的 AlloyDB Omni 效能。這些建議的調整參數是根據執行一組工作負載的結果而得,這些工作負載會呈現不同的讀寫模式、快取行為和索引存取模式。
大多數 PostgreSQL 預設參數值維持不變,因為變更僅限於可讓大多數應用程式受益的參數。這些參數的建議值通常可提升現代硬體的效能。
| 資料庫參數 |
AlloyDB Omni 預設值 |
建議設定 |
random_page_cost |
4.0 |
1.1 |
temp_buffers |
8 MB |
128 MB |
max_wal_size |
1 GB |
20 GB |
min_wal_size |
80 MB |
10 GB |
default_toast_compression |
pglz |
LZ4 |
maintenance_work_mem |
64 MB |
小型機器為 1 GB,大型機器為 2 GB |
max_worker_processes |
64 |
max(64, # vCPUs) |
max_parallel_workers |
8 |
max(8, # vCPUs) |
max_parallel_workers_per_gather |
2 |
max(2, # vCPUs / 2) |
work_mem |
4 MB |
128 至 512 MB,視工作負載和可用記憶體量而定 |
effective_cache_size |
40% * DRAM |
80% * DRAM |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-07-15 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-07-15 (世界標準時間)。"],[],[]]