Class: Google::Cloud::Redis::Cluster::V1beta1::ClusterPersistenceConfig::AOFConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb

Overview

Configuration of the AOF based persistence.

Defined Under Namespace

Modules: AppendFsync

Instance Attribute Summary collapse

Instance Attribute Details

#append_fsync::Google::Cloud::Redis::Cluster::V1beta1::ClusterPersistenceConfig::AOFConfig::AppendFsync

Returns Optional. fsync configuration.



1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
# File 'proto_docs/google/cloud/redis/cluster/v1beta1/cloud_redis_cluster.rb', line 1064

class AOFConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Available fsync modes.
  module AppendFsync
    # Not set. Default: EVERYSEC
    APPEND_FSYNC_UNSPECIFIED = 0

    # Never fsync. Normally Linux will flush data every 30 seconds with this
    # configuration, but it's up to the kernel's exact tuning.
    NO = 1

    # fsync every second. Fast enough, and you may lose 1 second of data if
    # there is a disaster
    EVERYSEC = 2

    # fsync every time new write commands are appended to the AOF. It has the
    # best data loss protection at the cost of performance
    ALWAYS = 3
  end
end