Imported Upstream version 1.5.1

This commit is contained in:
Mario Fetka
2020-09-22 02:25:22 +02:00
commit 434d6067d9
2103 changed files with 928962 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
datacenters=A,B,C
distance.A-B=10
distance.A-C=100
distance.B-C=50
A.addresses=192.168.1.1,192.168.2.0/24
B.addresses=192.168.1.2,192.168.3.0/24
C.addresses=192.168.1.3,192.168.4.0/24,192.168.10.10

View File

@@ -0,0 +1,9 @@
# This configuration file is only used by maintenance tools like xtfs_chstatus,
# xtfs_cleanup_osd, xtfs_remove_osd and xtfs_scrub if a DIR server is not
# explicitely set at the command line.
#
# Do *not* use this file to tell MRC and OSD which DIR to contact.
# Edit the corresponding configuration files mrcconfig.properties
# and osdconfig.properties instead.
dir_service.host = localhost
dir_service.port = 32638

View File

@@ -0,0 +1,154 @@
# optional debug level
# 0: emergency
# 1: alert
# 2: critical
# 3: error
# 4: warning
# 5: notice
# 6: info (default)
# 7: debug
#debug.level = 6
# optional debug categories - a space or comma-separated list of log message categories
# all (default) - enable logging for all categories
# lifecycle - log messaages pertaining to service lifecycles (threads)
# buffer - logs messages pertaining to buffers
# net - network-related log messages
# auth - authorization-related log messages
# stage - log messages pertaining to the request flow through the stages
# proc - log messages pertaining to any kind of request processing
# db - log messages pertaining storage on OSD or database access on MRC/DIR
# replication - logs messages pertaining to replication
# misc - any other log messages
#debug.categories = all
# port for the service to listen on
listen.port = 32638
# port for the status page (HTTP server)
http_port = 30638
# optional address for network device ("any" if not specified)
# listen.address = 127.0.0.1
# specify whether SSL is required
ssl.enabled = false
# server credentials for SSL handshakes
ssl.service_creds = /etc/xos/xtreemfs/truststore/certs/ds.p12
ssl.service_creds.pw = passphrase
ssl.service_creds.container = pkcs12
#ssl.trust_manager = org.xtreemfs.auth.plugin.SSLX509TrustManager
# trusted certificates for SSL handshakes
ssl.trusted_certs = /etc/xos/xtreemfs/truststore/certs/trusted.jks
ssl.trusted_certs.pw = jks_passphrase
ssl.trusted_certs.container = jks
# Enables the Grid SSL mode. This mode uses SSL only for user authentication
# and sends all data via an unencrypted TCP connection.
#ssl.grid_ssl = false
# time to wait for the directory service to become available on start-up
# before aborting
#startup.wait_for_dir = 30
# administrator password for privileged operations
#admin_password = passphrase
# Optional directory containing deployable policy implementations.
# Policies can be directly deployed as .java or .class files in this directory
# or one of its subdirectories. They will be compiled at startup time and
# loaded at runtime. Policies may have external dependencies that can be
# deployed either as .java, .class or .jar files. While Java and Class files
# may be located in subdirectories, JAR files mustn't.
policy_dir = /etc/xos/xtreemfs/policies
#monitoring = true
#monitoring.email.program = /usr/sbin/sendmail
#monitoring.email.sender = XtreemFS DIR
#monitoring.email.receiver =
#monitoring.max_warnings = 1
# If you want to monitor your XtreemFS installation through SNMP
# uncomment the following lines. You have to set snmp.enabled = true
# and provide a listen port and optional a address. Also optional
# is a path to an aclfile which controls which hosts can access the
# monitoring information via SNMP.
#snmp.enabled = true
#snmp.address = localhost
#snmp.port = 34638
#snmp.aclfile = /etc/xos/xtreemfs/snmp.acl
#####################################################################
# BabuDB configuration #
#####################################################################
# optional debug level (
# 0 = emergency,
# 1 = alert,
# 2 = critical,
# 3 = error,
# 4 = warning,
# 5 = notice,
# 6 = info,
# 7 = debug)
babudb.debug.level = 4
# optional debug category
#babudb.debug.category = all
# name for the database configuration file
#babudb.cfgFile = config.db
# base directory to store database index snapshots in
babudb.baseDir = /var/lib/xtreemfs/dir/database
# directory in which the database logs are stored
babudb.logDir = /var/lib/xtreemfs/dir/db-log
# SyncMode the synchronization mode to use for the logFile
# ASYNC - asynchronously write log entries (data is lost when system crashes).
# FSYNC - executes an fsync on the logfile before acknowledging the operation.
# FDATASYNC
# SYNC_WRITE - synchronously writes the log entry to disk before ack. Does not
# update the metadata.
# SYNC_WRITE_METADATA - synchronously writes the log entry to disk and updates
# the metadata before ack.
babudb.sync = FDATASYNC
# max queue length: if > 0, the queue for each worker is limited to maxQ
babudb.worker.maxQueueLength = 250
# number of worker threads to use
babudb.worker.numThreads = 0
# a checkpoint is generated, if maxLogfileSize is exceeded
babudb.maxLogfileSize = 16777216
# interval between two checks in seconds, 0 disables auto checkPointing
babudb.checkInterval = 300
# if set to a value > 0, operations are acknowledged immediately before
# they are written to the disk log. The disk logger will do batch writes
# and call fSync... every pseudoSyncWait seconds. This can be used to
# increase performance and emulate PostgreSQL behavior.
babudb.pseudoSyncWait = 200
# flag that determines whether the indices shall be compressed or not.
#babudb.compression = false
# maximum number of key-value pairs per block
#babudb.maxNumRecordsPerBlock = 16
# maximum size for a babudb on-disk index file
#babudb.maxBlockFileSize = 52428800
# Uncomment this line if you want to enable the DIR replication. The path points
# to the database replication configuration. Place here the hostnames of all replicas.
#babudb.plugin.0 = /etc/xos/xtreemfs/server-repl-plugin/dir.properties

View File

@@ -0,0 +1,190 @@
# optional debug level
# 0: emergency
# 1: alert
# 2: critical
# 3: error
# 4: warning
# 5: notice
# 6: info (default)
# 7: debug
#debug.level = 6
# optional debug categories - a space or comma-separated list of log message categories
# all (default) - enable logging for all categories
# lifecycle - log messaages pertaining to service lifecycles (threads)
# buffer - logs messages pertaining to buffers
# net - network-related log messages
# auth - authorization-related log messages
# stage - log messages pertaining to the request flow through the stages
# proc - log messages pertaining to any kind of request processing
# db - log messages pertaining storage on OSD or database access on MRC/DIR
# replication - logs messages pertaining to replication
# misc - any other log messages
#debug.categories = all
# port for the service to listen on
listen.port = 32636
# port for the status page (HTTP server)
http_port = 30636
# optional address for network device, "any" if not specified
# listen.address = 127.0.0.1
# optinal host name that is used to register the service at the DIR
# hostname = foo.bar.com
# interval for querying the Directory Service for new OSDs (in s)
osd_check_interval = 10
# Directory Service endpoint
dir_service.host = localhost
dir_service.port = 32638
# If you run a replicated DIR, you also have to set the addresses of the additional DIR replicas here:
#dir_service1.host = second-DIR-replica
#dir_service1.port = 32638
#dir_service2.host = third-DIR-replica
#dir_service2.port = 32638
# specify whether access time stamps are updated
no_atime = true
# granularity of the local clock (in ms) (0 disables it to always use the current system time)
local_clock_renewal = 0
# interval between two remote clock syncs (in ms)
remote_time_sync = 60000
# specify whether SSL is required
ssl.enabled = false
# server credentials for SSL handshakes
ssl.service_creds = /etc/xos/xtreemfs/truststore/certs/mrc.p12
ssl.service_creds.pw = passphrase
ssl.service_creds.container = pkcs12
#ssl.trust_manager = org.xtreemfs.auth.plugin.SSLX509TrustManager
# trusted certificates for SSL handshakes
ssl.trusted_certs = /etc/xos/xtreemfs/truststore/certs/trusted.jks
ssl.trusted_certs.pw = jks_passphrase
ssl.trusted_certs.container = jks
# Enables the Grid SSL mode. This mode uses SSL only for user authentication
# and sends all data via an unencrypted TCP connection.
#ssl.grid_ssl = false
# Authentication providers are used to retrieve the user identities
# from the client or from certificate.
# The default provider is org.xtreemfs.common.auth.NullAuthProvider, which just
# takes the information provided by the client. The name of a pluggable
# provider can be used here.
authentication_provider = org.xtreemfs.common.auth.NullAuthProvider
# Optional directory containing deployable policy implementations.
# Policies can be directly deployed as .java or .class files in this directory
# or one of its subdirectories. They will be compiled at startup time and
# loaded at runtime. Policies may have external dependencies that can be
# deployed either as .java, .class or .jar files. While Java and Class files
# may be located in subdirectories, JAR files mustn't. So far, pluggable
# policies have to inherit from either org.xtreemfs.mrc.ac.FileAccessPolicy,
# org.xtreemfs.mrc.osdstatus.OSDSelectionPolicy,
# org.xtreemfs.common.auth.AuthenticationProvider, or javax.ssl.TrustManager.
# Policies identified by policy IDs (OSDSelectionPolicy and FileAccessPolicy)
# require a public static long field called POLICY_ID that assigns the policy
# a unique number.
policy_dir = /etc/xos/xtreemfs/policies
# Shared secret between the MRC and all OSDs.
# The secret is used by the MRC to sign capabilities, i.e. security tokens for
# data access at OSDs. In turn, an OSD uses the secret to verify that the
# capability has been issued by the MRC. The shared secret will be replaced by
# a public key infrastructure in future releases.
capability_secret = secretPassphrase
# validity time span for capabilities in seconds
#capability_timeout = 600
# administrator password for privileged operations
#admin_password = passphrase
# If you want to monitor your XtreemFS installation through SNMP
# uncomment the following lines. You have to set snmp.enabled = true
# and provide a listen port and optional a address. Also optional
# is a path to an aclfile which controls which hosts can access the
# monitoring information via SNMP.
#snmp.enabled = true
#snmp.address = localhost
#snmp.port = 34636
#snmp.aclfile = /etc/xos/xtreemfs/snmp.acl
#####################################################################
# BabuDB configuration #
#####################################################################
# optional debug level (
# 0 = emergency,
# 1 = alert,
# 2 = critical,
# 3 = error,
# 4 = warning,
# 5 = notice,
# 6 = info,
# 7 = debug)
babudb.debug.level = 4
# optional debug category
#babudb.debug.category = all
# name for the database configuration file
#babudb.cfgFile = config.db
# base directory to store database index snapshots in
babudb.baseDir = /var/lib/xtreemfs/mrc/database
# directory in which the database logs are stored
babudb.logDir = /var/lib/xtreemfs/mrc/db-log
# SyncMode the synchronization mode to use for the logFile
# ASYNC - asynchronously write log entries (data is lost when system crashes).
# FSYNC - executes an fsync on the logfile before acknowledging the operation.
# FDATASYNC
# SYNC_WRITE - synchronously writes the log entry to disk before ack. Does not
# update the metadata.
# SYNC_WRITE_METADATA - synchronously writes the log entry to disk and updates
# the metadata before ack.
babudb.sync = ASYNC
# max queue length: if > 0, the queue for each worker is limited to maxQ
babudb.worker.maxQueueLength = 250
# number of worker threads to use
babudb.worker.numThreads = 0
# a checkpoint is generated, if maxLogfileSize is exceeded
babudb.maxLogfileSize = 16777216
# interval between two checks in seconds, 0 disables auto checkPointing
babudb.checkInterval = 300
# if set to a value > 0, operations are acknowledged immediately before
# they are written to the disk log. The disk logger will do batch writes
# and call fSync... every pseudoSyncWait seconds. This can be used to
# increase performance and emulate PostgreSQL behavior.
babudb.pseudoSyncWait = 0
# flag that determines whether the indices shall be compressed or not.
#babudb.compression = false
# maximum number of key-value pairs per block
#babudb.maxNumRecordsPerBlock = 16
# maximum size for a babudb on-disk index file
#babudb.maxBlockFileSize = 52428800
# Uncomment this line if you want to enable the MRC replication. The path points
# to the database replication configuration. Place here the hostnames of all replicas.
#
# Please note, if you replicate the MRC you have to change the option
# "babudb.sync" in this file from ASYNC to a synchronous one e.g., FDATASYNC.
#babudb.plugin.0 = /etc/xos/xtreemfs/server-repl-plugin/mrc.properties

View File

@@ -0,0 +1,130 @@
# optional debug level
# 0: emergency
# 1: alert
# 2: critical
# 3: error
# 4: warning
# 5: notice
# 6: info (default)
# 7: debug
#debug.level = 6
# optional debug categories - a space or comma-separated list of log message categories
# all (default) - enable logging for all categories
# lifecycle - log messaages pertaining to service lifecycles (threads)
# buffer - logs messages pertaining to buffers
# net - network-related log messages
# auth - authorization-related log messages
# stage - log messages pertaining to the request flow through the stages
# proc - log messages pertaining to any kind of request processing
# db - log messages pertaining storage on OSD or database access on MRC/DIR
# replication - logs messages pertaining to replication
# misc - any other log messages
#debug.categories = all
# port for the service to listen on
listen.port = 32640
# port for the status page (HTTP server)
http_port = 30640
# optional address for network device, "any" if not specified
# listen.address = 127.0.0.1
# optinal host name that is used to register the service at the DIR
# hostname = foo.bar.com
# Directory Service endpoint
dir_service.host = localhost
dir_service.port = 32638
# If you run a replicated DIR, you also have to set the addresses of the additional DIR replicas here:
#dir_service1.host = second-DIR-replica
#dir_service1.port = 32638
#dir_service2.host = third-DIR-replica
#dir_service2.port = 32638
# directory containing XtreemFS file content
object_dir = /var/lib/xtreemfs/objs/
# Number of storage threads. Increase it to improve concurrency in case of multiple open files.
# Set it to a value >1 only if the underlying device can cope with concurrency, e.g. an SSD.
#storage_threads = 1
# granularity of the local clock (in ms) (0 disables it to always use the current system time)
local_clock_renewal = 0
# interval between two remote clock syncs (in ms)
remote_time_sync = 60000
# specify whether SSL is required
ssl.enabled = false
# server credentials for SSL handshakes
ssl.service_creds = /etc/xos/xtreemfs/truststore/certs/osd.p12
ssl.service_creds.pw = passphrase
ssl.service_creds.container = pkcs12
#ssl.trust_manager = org.xtreemfs.auth.plugin.SSLX509TrustManager
# trusted certificates for SSL handshakes
ssl.trusted_certs = /etc/xos/xtreemfs/truststore/certs/trusted.jks
ssl.trusted_certs.pw = jks_passphrase
ssl.trusted_certs.container = jks
# Enables the Grid SSL mode. This mode uses SSL only for user authentication
# and sends all data via an unencrypted TCP connection.
#ssl.grid_ssl = false
# send and receive buffer sizes of sockets
#socket.send_buffer_size = 262144
#socket.recv_buffer_size = 262144
report_free_space = true
# specify whether internal OSD checksums are required
# if the flag is set to true, the OSD will calculate checksums for
# newly created objects, which will be checked when the object is read
checksums.enabled = false
# algorithm used for checksum calculation
# by default, Adler32, CRC32, MD5 and SHA-1 are supported
checksums.algorithm = Adler32
# Shared secret between the MRC and all OSDs.
# The secret is used by the MRC to sign capabilities, i.e. security tokens for
# data access at OSDs. In turn, an OSD uses the secret to verify that the
# capability has been issued by the MRC. The shared secret will be replaced by
# a public key infrastructure in future releases.
capability_secret = secretPassphrase
# administrator password for privileged operations
#admin_password = passphrase
# time to wait for the directory service to become available on start-up
# before aborting
#startup.wait_for_dir = 30
# Optional directory containing deployable policy implementations.
# Policies can be directly deployed as .java or .class files in this directory
# or one of its subdirectories. They will be compiled at startup time and
# loaded at runtime. Policies may have external dependencies that can be
# deployed either as .java, .class or .jar files. While Java and Class files
# may be located in subdirectories, JAR files mustn't.
policy_dir = /etc/xos/xtreemfs/policies
# If you want to monitor your XtreemFS installation through SNMP
# uncomment the following lines. You have to set snmp.enabled = true
# and provide a listen port and optional a address. Also optional
# is a path to an aclfile which controls which hosts can access the
# monitoring information via SNMP.
#snmp.enabled = true
#snmp.address = localhost
#snmp.port = 34640
#snmp.aclfile = /etc/xos/xtreemfs/snmp.acl
# Optional user-definied script to determine the health status of the OSD.
# The health status will be used in the default OSD selection policy to
# exclude OSDs with FAILED or WARNING health status.
# See the xtreemfs user guide for more information.
#health_check = /usr/share/xtreemfs/osd_health_check.sh

38
etc/xos/xtreemfs/snmp.acl Normal file
View File

@@ -0,0 +1,38 @@
# @(#)file jdmk.acl
# @(#)author Sun Microsystems, Inc.
# @(#)version 1.11
# @(#)lastedit 04/04/07
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
# access: can take only "read-only" or "read-write" values
#
# managers can be :
# - hostname: hubble
# - ip v4 and v6 addresses: 123.456.789.12 , fe80::a00:20ff:fe9b:ea82
# - subnet mask: 123!255!255!255 (its an IPO address where "." are replaced
# by "!"). This way of expressing the subnet is deprecated, use the prefix
# notation.
# - ip v4 and v6 netmask prefix notation :
# 123.456.789.12/24, fe80::a00:20ff:fe9b:ea82/64
acl = {
{
communities = public
access = read-only
managers = localhost
}
{
communities = private
access = read-write
managers = localhost
}
}
trap = {
{
trap-community = public
hosts = localhost
}
}