Hi!
I have clear installation:
Chunk interval configured 86400 seconds (1 day) and chunk sizes:
Configured default compression after - 7day. I expecting _hyper_2_2_chunk AND _hyper_2_8_chunk must be compressed and free space released.
But no one chunk compressed and no free space released on disk.
In source code of zabbix no code with compress_chunk() TimescaleDB function.
In manual https://www.zabbix.com/documentation...db_compression nothing about additional configuring.
Can somebody explain to me how it works and when compression will by executed ?
I have clear installation:
- Ubuntu 20.04
- Zabbix 5.0.3
- PostgreSQL 12.4
- timescaledb-postgresql-12 1.7.4
Chunk interval configured 86400 seconds (1 day) and chunk sizes:
Code:
echo "select chunk_table, partitioning_columns, ranges FROM chunk_relation_size_pretty('history_uint')" | sudo -u postgres psql zabbix
chunk_table | partitioning_columns | ranges
-------------------------------------------+----------------------+---------------------------------
_timescaledb_internal._hyper_2_2_chunk | {clock} | {"['1599868800','1599955200')"}
_timescaledb_internal._hyper_2_8_chunk | {clock} | {"['1599955200','1600041600')"}
_timescaledb_internal._hyper_2_11_chunk | {clock} | {"['1600041600','1600128000')"}
_timescaledb_internal._hyper_2_4136_chunk | {clock} | {"['1600128000','1600214400')"}
_timescaledb_internal._hyper_2_4170_chunk | {clock} | {"['1600214400','1600300800')"}
_timescaledb_internal._hyper_2_4174_chunk | {clock} | {"['1600300800','1600387200')"}
_timescaledb_internal._hyper_2_4178_chunk | {clock} | {"['1600387200','1600473600')"}
_timescaledb_internal._hyper_2_4182_chunk | {clock} | {"['1600473600','1600560000')"}
_timescaledb_internal._hyper_2_4186_chunk | {clock} | {"['1600560000','1600646400')"}
echo "select chunk_table, table_size, index_size, total_size FROM chunk_relation_size_pretty('history_uint')" | sudo -u postgres psql zabbix
chunk_table | table_size | index_size | total_size
-------------------------------------------+------------+------------+------------
_timescaledb_internal._hyper_2_2_chunk | 479 MB | 460 MB | 939 MB
_timescaledb_internal._hyper_2_8_chunk | 6449 MB | 9495 MB | 16 GB
_timescaledb_internal._hyper_2_11_chunk | 4788 MB | 5981 MB | 11 GB
_timescaledb_internal._hyper_2_4136_chunk | 4386 MB | 5704 MB | 10090 MB
_timescaledb_internal._hyper_2_4170_chunk | 6045 MB | 7740 MB | 13 GB
_timescaledb_internal._hyper_2_4174_chunk | 6042 MB | 7704 MB | 13 GB
_timescaledb_internal._hyper_2_4178_chunk | 6049 MB | 7736 MB | 13 GB
_timescaledb_internal._hyper_2_4182_chunk | 6050 MB | 7761 MB | 13 GB
_timescaledb_internal._hyper_2_4186_chunk | 2166 MB | 2878 MB | 5045 MB
But no one chunk compressed and no free space released on disk.
In source code of zabbix no code with compress_chunk() TimescaleDB function.
In manual https://www.zabbix.com/documentation...db_compression nothing about additional configuring.
Can somebody explain to me how it works and when compression will by executed ?
Comment