All Downloads are FREE. Search and download functionalities are using the official Maven repository.

id.omid-tso-server.0.8.2.0.source-code.default-omid.yml Maven / Gradle / Ivy

# =====================================================================================================================
# Omid TSO Server Configuration
# =====================================================================================================================

# ---------------------------------------------------------------------------------------------------------------------
# Basic configuration parameters
# ---------------------------------------------------------------------------------------------------------------------

# Network interface for TSO server communication. Uncomment the following line to use a specific interface
# networkIfaceName: eth0
# If a network interface in the configuration, the TSO will attempt to guess default network interface.
# See org.apache.omid.tso.TSOServerConfig.getDefaultNetworkInterface for more information.

# Port reserved by the Status Oracle
port: 54758
# The number of elements reserved in the conflict map to perform conflict resolution
# TODO Rename to conflictMapSize
maxItems: 100000000
# The number of Commit Table writers that persist data concurrently to the datastore. It has to be at least 2.
numConcurrentCTWriters: 2
# The size of the batch of operations that each Commit Table writes has. The maximum number of operations that can be
# batched in the system at a certain point in time is: numConcurrentCTWriters * batchSizePerCTWriter
batchSizePerCTWriter: 25
# When this timeout expires, the contents of the batch are flushed to the datastore
batchPersistTimeoutInMs: 10

# Default module configuration (No TSO High Availability & in-memory storage for timestamp and commit tables)
timestampStoreModule: !!org.apache.omid.tso.InMemoryTimestampStorageModule [ ]
commitTableStoreModule: !!org.apache.omid.tso.InMemoryCommitTableStorageModule [ ]
leaseModule: !!org.apache.omid.tso.VoidLeaseManagementModule [ ]

# Default stats/metrics configuration
metrics: !!org.apache.omid.metrics.NullMetricsProvider [ ]

# ---------------------------------------------------------------------------------------------------------------------
# Timestamp storage configuration options
# ---------------------------------------------------------------------------------------------------------------------
# Could be any guava module that binds org.apache.omid.timestamp.storage.TimestampStorage
# Current available Timestamp stores:
#     org.apache.omid.tso.InMemoryTimestampStorageModule
#     org.apache.omid.timestamp.storage.HBaseTimestampStorageModule
#     org.apache.omid.timestamp.storage.ZKTimestampStorageModule

# ---------------------------------------------------------------------------------------------------------------------
# Commit Table storage configuration options
# ---------------------------------------------------------------------------------------------------------------------
# Could be any guava module that binds org.apache.omid.committable.CommitTable
# Available CommitTable stores:
#     org.apache.omid.committable.hbase.HBaseCommitTableStorageModule
#     org.apache.omid.tso.InMemoryCommitTableStorageModule

# ---------------------------------------------------------------------------------------------------------------------
# Metrics configuration options
# ---------------------------------------------------------------------------------------------------------------------
# Metrics could be anything that is org.apache.omid.metrics.MetricsRegistry
# There are 4 built-in reporters: CSV, SLF4J, GRAPHITE, CONSOLE
# Please see org.apache.omid.metrics.CodahaleMetricsConfig for details.

# Example configuration for reporting statistics to the console every minute:
#
# metrics: !!org.apache.omid.metrics.CodahaleMetricsProvider [
#     !!org.apache.omid.metrics.CodahaleMetricsConfig {
#         outputFreqInSecs: 60,
#         reporters: !!set {
#             !!org.apache.omid.metrics.CodahaleMetricsConfig$Reporter CONSOLE
#         },
#     }
# ]

# Example of multiple reporter configuration (to CSV files and console)
#
# metrics: !!org.apache.omid.metrics.CodahaleMetricsProvider [
#     !!org.apache.omid.metrics.CodahaleMetricsConfig {
#         outputFreqInSecs: 60,
#         reporters: !!set {
#             !!org.apache.omid.metrics.CodahaleMetricsConfig$Reporter CSV,
#             !!org.apache.omid.metrics.CodahaleMetricsConfig$Reporter CONSOLE
#         },
#         csvDir: "csvMetrics",
#         prefix: "somePrefix",
#     }
# ]

# =====================================================================================================================
# Some example configurations
# =====================================================================================================================

# ---------------------------------------------------------------------------------------------------------------------
# Configuration WITHOUT High Availability using HBase for all required storage & reporting metrics to CSV files
# ---------------------------------------------------------------------------------------------------------------------
#
# commitTableStoreModule: !!org.apache.omid.tso.DefaultHBaseCommitTableStorageModule [ ]
#     See optional params
#         - tableName
#         - familyName
#         - principal
#         - keytab
# timestampStoreModule: !!org.apache.omid.tso.DefaultHBaseTimestampStorageModule [ ]
#     See optional params
#         - tableName
#         - familyName
#         - principal
#         - keytab
# leaseModule: !!org.apache.omid.tso.VoidLeaseManagementModule [ ]
# metrics: !!org.apache.omid.metrics.CodahaleMetricsProvider [
#     !!org.apache.omid.metrics.CodahaleMetricsConfig {
#         reporters: !!set {
#             !!org.apache.omid.metrics.CodahaleMetricsConfig$Reporter CSV
#         },
#         csvDir: "myCSVMetricsDir",
#         prefix: "myAppPrefixForMetrics",
#     }
# ]

# ---------------------------------------------------------------------------------------------------------------------
# Configuration WITHOUT High Availability using ZK to store the timestamps & reporting metrics to console every 30 secs
# ---------------------------------------------------------------------------------------------------------------------
#
# commitTableStoreModule: !!org.apache.omid.tso.DefaultHBaseCommitTableStorageModule [ ]
# timestampStoreModule: !!org.apache.omid.tso.DefaultZKTimestampStorageModule
#         zkCluster: "localhost:2181"
#         namespace: "omid"
# leaseModule: !!org.apache.omid.tso.VoidLeaseManagementModule [ ]
# metrics: !!org.apache.omid.metrics.CodahaleMetricsProvider [
#     !!org.apache.omid.metrics.CodahaleMetricsConfig {
#         outputFreqInSecs: 30,
#         reporters: !!set {
#             !!org.apache.omid.metrics.CodahaleMetricsConfig$Reporter CONSOLE
#         },
#     }
# ]


# ---------------------------------------------------------------------------------------------------------------------
# Configuration WITH High Availability using HBase for all required storage and no metrics reports
# ---------------------------------------------------------------------------------------------------------------------
#
# commitTableStoreModule: !!org.apache.omid.tso.DefaultHBaseCommitTableStorageModule [ ]
# timestampStoreModule: !!org.apache.omid.tso.DefaultHBaseTimestampStorageModule [ ]
# leaseModule: !!org.apache.omid.tso.HALeaseManagementModule
#     leasePeriodInMs: 10000
#     tsoLeasePath: "/tso-lease"
#     currentTsoPath: "/current-tso"
#     zkCluster: "localhost:2181"
#     zkNamespace: "omid"
# metrics: !!org.apache.omid.metrics.NullMetricsProvider [ ]







© 2015 - 2025 Weber Informatics LLC | Privacy Policy