Hi Guys,
Not sure if this is the right place for this question.
I am running FusionPBX 4.4 with postgresql 9.4 BDR. I am running into a problem where my second server is running out of disk space. The biggest files are the WAL files for postgres.
On my main server I can see the oldest file is date Apr this month. My secondary server's oldest files is January. I am talking under correction, but it seems that the autovacuum function isnt doing what it needs to. I have confirmed that its on on both server and process is running:
fusionpbx=# select name, setting from pg_settings where name = 'autovacuum' ;
name | setting
------------+---------
autovacuum | on
(1 row)
fusionpbx=#
root@c3po:/etc/postgresql/9.4/main# ps -aef | grep autovacuum
postgres 105175 105170 0 08:01 ? 00:00:00 postgres: autovacuum launcher process
postgres 105427 105170 1 08:21 ? 00:00:00 postgres: autovacuum worker process template1
From what I have read up on WAL files and autovacuum, this should be sufficient. In postgresl.conf file, those options are all hashed out, meaning that its running its default config. I have the same config on my main server and that is working as expected.
Now, I know a bit of postgresql to get by.
Any help would be greatly appreciated.
Thanks
Kobus
Not sure if this is the right place for this question.
I am running FusionPBX 4.4 with postgresql 9.4 BDR. I am running into a problem where my second server is running out of disk space. The biggest files are the WAL files for postgres.
On my main server I can see the oldest file is date Apr this month. My secondary server's oldest files is January. I am talking under correction, but it seems that the autovacuum function isnt doing what it needs to. I have confirmed that its on on both server and process is running:
fusionpbx=# select name, setting from pg_settings where name = 'autovacuum' ;
name | setting
------------+---------
autovacuum | on
(1 row)
fusionpbx=#
root@c3po:/etc/postgresql/9.4/main# ps -aef | grep autovacuum
postgres 105175 105170 0 08:01 ? 00:00:00 postgres: autovacuum launcher process
postgres 105427 105170 1 08:21 ? 00:00:00 postgres: autovacuum worker process template1
From what I have read up on WAL files and autovacuum, this should be sufficient. In postgresl.conf file, those options are all hashed out, meaning that its running its default config. I have the same config on my main server and that is working as expected.
Now, I know a bit of postgresql to get by.
Any help would be greatly appreciated.
Thanks
Kobus