Increasing max_wal_size

瀏覽次數:1,709 次
跳到第一則未讀訊息

Mike Hardy

未讀,
2017年10月29日 上午10:37:422017/10/29
收件者:Google Cloud SQL discuss
Hiya, we're using Postgres on Cloud SQL and our logs continuously show us two messages.

LOG:  checkpoints are occurring too frequently (15 seconds apart) 
HINT
:  Consider increasing the configuration parameter "max_wal_size".

However, I see on the supported flags documentation that this flag is not supported by Cloud SQL. Is there anything we can do about this?

Cheers,
Mike

Kenworth (Google Cloud Platform)

未讀,
2017年10月29日 下午5:11:092017/10/29
收件者:Google Cloud SQL discuss
Per this Postgres WAL (Write Ahead Log) docs, The default size is 1 GB and you can set this parameter in the postgresql.conf file or on the server command line.


Mike Hardy

未讀,
2017年10月29日 下午6:00:472017/10/29
收件者:Google Cloud SQL discuss
Kenworth,thanks but I don't think Cloud SQL users can edit postgresql.conf, can we? If it is possible, please share the documentation.

Vladimir Rusinov

未讀,
2017年10月30日 清晨5:05:132017/10/30
收件者:google-cloud...@googlegroups.com
Hi Mike,

You are right - we don't provide a way to edit postgresql.conf directly, and max_wal_size is not one of parameters we expose through flags. It is also unlikely that we will start exposing it in near future.

However, we set it to 1.5G on most of the instances. We did some preliminary testing and found out that  on our infrastructure higher values provide diminishing returns while increasing crash recovery times. So we felt 1.5G is a good trade-off between performance and MTTR in case of a failure.
We may of course revisit this decision in the future. Please open a feature request if you feel like this is limiting performance for your workload.

Thank you for using our service!

--
Vladimir Rusinov
PostgreSQL SRE, Google Ireland

Google Ireland Ltd.,Gordon House, Barrow Street, Dublin 4, Ireland
Registered in Dublin, Ireland
Registration Number: 368047

On Sun, Oct 29, 2017 at 10:00 PM, Mike Hardy <mha...@localinsights.io> wrote:
Kenworth,thanks but I don't think Cloud SQL users can edit postgresql.conf, can we? If it is possible, please share the documentation.

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/a6dbccfd-6111-4437-9075-e1dcb151f66d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

回覆所有人
回覆作者
轉寄
0 則新訊息