Class: Google::Cloud::Memorystore::V1::PersistenceConfig::AOFConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/memorystore/v1/memorystore.rb

Overview

Configuration for AOF based persistence.

Defined Under Namespace

Modules: AppendFsync

Instance Attribute Summary collapse

Instance Attribute Details

#append_fsync::Google::Cloud::Memorystore::V1::PersistenceConfig::AOFConfig::AppendFsync

Returns Optional. The fsync mode.



887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
# File 'proto_docs/google/cloud/memorystore/v1/memorystore.rb', line 887

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

  # Possible fsync modes.
  module AppendFsync
    # Not set. Default: EVERY_SEC
    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.
    NEVER = 1

    # Fsync every second. You may lose 1 second of data if there is a
    # disaster.
    EVERY_SEC = 2

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