postgres-ai/postgres-checkup

F003 Autovacuum tuning, IO

ane4ka opened this issue · 8 comments

F003 Autovacuum tuning, IO
dmius commented

@NikolayS @Nastradamus Как и что собирать для этой проверки?

@NikolayS удаваиваю вопрос. Еще и estimate такой.

@ane4ka why it is in backlog?

в бэклоге, потому что так мы вместе решили на планировании спринта. Я ничего сама по своему усмотрению не перетаскиваю из incoming

What we collect here:

  • all autovacuum_*** settings
  • during 1 minute (should this duration be configurable?? @Nastradamus), observe iotop's (if ssh is available and iotop is installed on the observed host) output:
sudo iotop -o -d 5 -n 12 -k -b

(every 5 seconds, 12 cycles – 5*12=60, print stats in kilobytes, use non-interactive mode)

@NikolayS I think it is complicated for now. If we hardcode a check which locks a whole health-check for a minute, it will slow-down our manual tests and auto-tests in the future.

dmius commented

@Nastradamus @NikolayS А здесь в каком фомате собирать данные iotop ?

Проще в сего в сыром. Выводить наверно будет нормаьно но потом когда их придется анализировать то придется парсить...

@NikolayS @dmius мне очень не нравится идея собирать iotop и автовакуум в одной проверке.
Давайте вынесем io check в отдельную проверку.

И вообще, не будем мешать psql команды и shell утилиты в одной проверке.

К тому же, этот iotop аж на минуту замедляет каждый прогон.

@NikolayS что думаешь?
Мы с @dmius пока договорились убрать iotop из этой проверки.

@Nastradamus ok, agreed. Let's consider iotop analysis as a separate item in the list.

What we completely forgot here: autovacuum_*** settings can be changed at table level (ALTER TABLE ... ). we need to check each table and highlight any "local" settings.