Skip to content
LogScale Self-Hosted
This is an archived version of the documentation downloaded from LogScale Documentation Archives. Up to date documentation, and documentation for later versions, is available on LogScale Documentation

## `MAX_HOURS_SEGMENT_OPEN`

Option | `MAX_HOURS_SEGMENT_OPEN`
Description | The maximum number of hours a merge target will remain open for writing before being closed.
Default | `24 hours`
Maximum | `24,000 hours`

Controls when LogScale forcibly switches merge targets due to the old target having been open for too long. A larger timespan reduces the amount of metadata in global for events, with the tradeoff being that while larger merged segments take up less space in global, the files are larger, so segment movement between nodes or from bucket storage may end up moving more data than it otherwise would.

See `BLOCKS_PER_SEGMENT` for an example of this variable and more information.

#### Enter search term