Repository navigation
Document datapoint chunk interval and compression metrics - #214
Merged
Merged
Conversation
Document OR_DATA_POINTS_CHUNK_INTERVAL_DAYS with chunk sizing guidelines, the 1 day columnstore compress_after, the daily purge and the new chunk sizing query-exporter metrics (openremote/core#3620).
Add pg_datapoint_compressed_rowstore_size, pg_datapoint_uncompressed_blks_hit_total, pg_wal_records_total and pg_wal_fpi_total, remove the replaced pg_datapoint_uncompressed_cache_hit_ratio and update descriptions that changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the changes in openremote/core#3620. Merge this after that PR.
Changes
Developer guide: System administration, Database
asset_datapointchunks work: the chunk being written stays uncompressed, and each chunk is compressed 1 day after it ends.OR_DATA_POINTS_CHUNK_INTERVAL_DAYSsetting, applied at startup to new chunks only.shared_buffers; every chunk adds planning and lock cost; small chunks compress less well.OR_DATA_POINTS_CHUNK_INTERVAL_DAYSrather than callingset_chunk_time_interval()by hand.pg_datapoint_chunk_memory_ratio,pg_datapoint_chunks_needing_compression,pg_datapoint_uncompressed_chunk_count,pg_datapoint_chunk_count, the uncompressed chunk block hit/read counters,pg_datapoint_compressed_rowstore_sizeand the WAL full page image counters, and updated the note onpg_datapoint_largest_uncompressed_chunk.User guide: Metrics
pg_datapoint_chunk_interval_days,pg_datapoint_write_rate_per_day,pg_datapoint_projected_chunk_sizeandpg_datapoint_chunk_memory_ratio.pg_datapoint_compressed_rowstore_size,pg_datapoint_uncompressed_blks_hit_total,pg_wal_records_totalandpg_wal_fpi_total.pg_datapoint_uncompressed_cache_hit_ratio, replaced by thepg_datapoint_uncompressed_blks_hit_totalandpg_datapoint_uncompressed_blks_read_totalcounters (hit ratio =rate(hit) / (rate(hit) + rate(read))).pg_datapoint_chunks_needing_compression,pg_connections_used,pg_connections_free,pg_last_autovacuum_hours,pg_last_autoanalyze_hours,pg_datapoint_chunk_end_weeks,pg_datapoint_uncompressed_blks_read_totalandpg_background_errors.Versioned docs are unchanged because they describe released versions.