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.



834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
# File 'proto_docs/google/cloud/memorystore/v1/memorystore.rb', line 834

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