public enum ClusterPersistenceConfig.AOFConfig.AppendFsync extends Enum<ClusterPersistenceConfig.AOFConfig.AppendFsync> implements ProtocolMessageEnum
Available fsync modes.
Protobuf enum google.cloud.redis.cluster.v1beta1.ClusterPersistenceConfig.AOFConfig.AppendFsync
Implements
ProtocolMessageEnumStatic Fields | |
---|---|
Name | Description |
ALWAYS | fsync every time new write commands are appended to the AOF. It has the best data loss protection at the cost of performance
|
ALWAYS_VALUE | fsync every time new write commands are appended to the AOF. It has the best data loss protection at the cost of performance
|
APPEND_FSYNC_UNSPECIFIED | Not set. Default: EVERYSEC
|
APPEND_FSYNC_UNSPECIFIED_VALUE | Not set. Default: EVERYSEC
|
EVERYSEC | fsync every second. Fast enough, and you may lose 1 second of data if there is a disaster
|
EVERYSEC_VALUE | fsync every second. Fast enough, and you may lose 1 second of data if there is a disaster
|
NO | Never fsync. Normally Linux will flush data every 30 seconds with this configuration, but it's up to the kernel's exact tuning.
|
NO_VALUE | Never fsync. Normally Linux will flush data every 30 seconds with this configuration, but it's up to the kernel's exact tuning.
|
UNRECOGNIZED |
Static Methods | |
---|---|
Name | Description |
forNumber(int value) | |
getDescriptor() | |
internalGetValueMap() | |
valueOf(Descriptors.EnumValueDescriptor desc) | |
valueOf(int value) | Deprecated. Use #forNumber(int) instead. |
valueOf(String name) | |
values() |
Methods | |
---|---|
Name | Description |
getDescriptorForType() | |
getNumber() | |
getValueDescriptor() |