How does postgres compare in performance terms with MySQL? I'm looking at postgres for when we move from 1.8 to 2.0 but want to make sure the load levels are the same...
Is the recommendation still to disable housekeeping with postgres (as it is with mysql) and then use sql maintenance jobs to keep the data in check? Also I'm guessing need to be careful with the postgres 'vacuuming' on the large database to make sure performance isn't impacted too much?
Is the recommendation still to disable housekeeping with postgres (as it is with mysql) and then use sql maintenance jobs to keep the data in check? Also I'm guessing need to be careful with the postgres 'vacuuming' on the large database to make sure performance isn't impacted too much?
Yes - advice from anyone with experience at high loads would be very welcome. The maintenance issue looks to be by far the biggest challenge. I'm torn between upgrading to V2.0.xx and moving to PerconaDB or Postgres or staying with V1.8.8 and sticking with MySQL and db partitioning. Some examples of optimum maintenance procedures with V2.0.xx would help greatly.
i can not compare mysql and postgresql, i only run a postgresql database, but i can describe my setup.
In our environment we have a 1,2 TB zabbix database running with postgresql 9.1 and zabbix 1.8.13 (>= 1.8.13 is important, there are some fixes for large databases and postgresql in tihs version), and plan to update to zabbix 2.0.3 and postgresql 9.2 next month, but without data migration (1.2 TB takes to long and is to expensive ).
we have a standalone zabbix server + frontend and a database server (ibm37xx, 2 CPU 12 Core 36 GB RAM) and the DB Server is running with a load of ~1,5
I have a partitioned database with this HowTo : http://www.zabbix.com/wiki/howto/db/postgres/partition
i have the partitions for the current month on a local disk, and a tablespace for each month, and i migrate the partitions each month to the tablespace, i do this online, this works good if the partitions are not to big <= 5GB.
My partitions are 20GB, this is the reason why i switch from montly to daily / montly partitioning with zabbix2 and this HowTo https://www.zabbix.org/wiki/Docs/how...l_partitioning, and beacuse i change the partition schema, the data migration is to expensive
If the data for a month is no longer needed, you can disable partitioning for this table and easy drop the table , no need to run an expensive delete.
You can also do this for any maintenance, you can disable the partitioning for a table, run some patch or something and bring it back online.
vacuum is no problem at all, with version >=9, i use autovacuum.
the zabbix housekeeper is completly disabled.
the postgresql.conf is tuned a bit, but not so much, i can post the details if needed.
i can post more data if you like..
regards flo


Comment