-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split config into 2 files, added option to load extra files
As a first step towards a lower-overhead config management system (requested in #242), I changed the Conf initialization routine to expect two files: One for the "group" config that must be the same on all nodes, and one for a "node" config that contains only the options that are unique per node. The "group" config is loaded first, then the "node" config, so any options that appear in both files will take the values specified in the "node" config file. I also created a new top-level function, loadExtraFile, that allows a client to repeat the config-file-loading process for an additional file besides the two required ones. This should enable Cascade to use a separate file for its options (i.e. "cascade.cfg") and ask Conf to load and parse this file at startup.
- Loading branch information
Showing
5 changed files
with
215 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[DERECHO] | ||
# my local id - each node should have a different id | ||
local_id = 0 | ||
# my local ip address | ||
local_ip = 127.0.0.1 | ||
# These ports are optional: nodes will use the values from the group derecho.cfg by default, | ||
# but if the port options are specified here they will override the defaults. | ||
# derecho gms port | ||
gms_port = 23580 | ||
# derecho state-transfer port | ||
state_transfer_port = 28366 | ||
# sst tcp port | ||
sst_port = 37683 | ||
# rdmc tcp port | ||
rdmc_port = 31675 | ||
# externel tcp port listening to external clients | ||
external_port = 32645 | ||
|
||
|
||
# RDMA section contains configurations of the following | ||
# - which RDMA device to use | ||
# - device configurations | ||
[RDMA] | ||
# 1. provider = bgq|gni|efa|hook|netdir|psm|psm2|psm3|rxd|rxm|shm|udp|usnic|verbs | ||
# possible options(only 'sockets' and 'verbs' providers are tested so far): | ||
# bgq - The Blue Gene/Q Fabric Provider | ||
# efa - The Amazon Elastic Fabric Adapter | ||
# gni - The GNI Fabric Provider (Cray XC (TM) systems) | ||
# hook - The Hook Fabric Provider Utility | ||
# netdir - The Network Direct Fabric Provider (Microsoft Network Direct SPI) | ||
# psm - The PSM Fabric Provider | ||
# psm2 - The PSM2 Fabric Provider | ||
# psm3 - The PSM3 Fabric Provider | ||
# rxd - The RxD (RDM over DGRAM) Utility Provider | ||
# rxm - The RxM (RDM over MSG) Utility Provider | ||
# shm - The SHM Fabric Provider | ||
# tcp - The TCP Fabric Provider | ||
# udp - The UDP Fabric Provider | ||
# usnic - The usNIC Fabric Provider (Cisco VIC) | ||
# verbs - The Verbs Fabric Provider | ||
# Please note that only "tcp" and "verbs" are tested this moment. | ||
provider = tcp | ||
|
||
# 2. domain | ||
# For sockets provider, domain is the NIC name (ifconfig | grep -v -e "^ ") | ||
# For verbs provider, domain is the device name (ibv_devices) | ||
domain = eth0 | ||
|
||
# 3. tx_depth | ||
# tx_depth applies to hints->tx_attr->size, where hint is a struct fi_info object. | ||
# see https://ofiwg.github.io/libfabric/master/man/fi_getinfo.3.html | ||
tx_depth = 256 | ||
|
||
# 4. rx_depth: | ||
# rx_depth applies to hints->rx_attr->size, where hint is a struct fi_info object. | ||
# see https://ofiwg.github.io/libfabric/master/man/fi_getinfo.3.html | ||
rx_depth = 256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters