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

### `FlushSegmentsAndGlobalOnShutdown`

Option | `FlushSegmentsAndGlobalOnShutdown`
Description | Allows the shutdown of all in-progress segments and forces a write (and upload) of global snapshot.
Introduced Version | 1.76.1
Default | `false`

When set, and when `USING_EPHEMERAL_DISKS` environment variable is set to true, forces all in-progress segments to be closed and uploaded to bucket, and also forces a write (and upload) of global snapshot during shutdown.

When not set, this avoids the extra work and thus time shutting down from flushing very recent segments, as those can then be resumed on next boot, assuming that next boot continues on the same Kafka epoch. When set to the default, allows faster shutdown.

#### Enter search term