X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=drl%2Fconfig.h;h=883b6419d876ba33f63e73d68d13f162addffe2d;hp=82e6e1fccb76fd293a53c1613002cda52990a603;hb=c9d6255f0c06ee41eb2c06a5f74a957ec7be3223;hpb=f83340496f632165030cc92cd98408a87082f6b1 diff --git a/drl/config.h b/drl/config.h index 82e6e1f..883b641 100644 --- a/drl/config.h +++ b/drl/config.h @@ -69,6 +69,22 @@ typedef struct ident_config { /** The gossip branch factor (when commfabric is COMM_GOSSIP). */ int branch; + /** The gossip group membership policy (SWIM, ZOOKEEPER). */ + enum memberships membership; + + /** The behavioral policy to use when one or more failures in group + * membership are detected. */ + enum failure_behaviors failure_behavior; + +#ifdef BUILD_ZOOKEEPER + + /** The host string that should be passed to zookeeper_init when using + * zookeeper. This consists of comma-separated ipaddr:port pairs. Example: + * "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002" */ + char *zk_host; + +#endif + /** The flow accounting mechanism to be used by this identity. */ enum accountings accounting; @@ -91,6 +107,9 @@ typedef struct ident_config { /** The number of peers. */ int peer_count; + /** If this is set, the node goes under the root rather than machine nodes. */ + int independent; + /** List of the identity's members (type IDENT_SET only). */ ident_member *members;