From 1388bd17c4ea0e5f5775c87cf55ba250ea429ada Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 1 Mar 2010 21:44:27 +0000 Subject: [PATCH] DRL slice --- db-config.d/04-slicetags | 6 ++++++ db-config.d/14-drl_slice | 29 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 db-config.d/14-drl_slice diff --git a/db-config.d/04-slicetags b/db-config.d/04-slicetags index 989150b..291738b 100644 --- a/db-config.d/04-slicetags +++ b/db-config.d/04-slicetags @@ -144,6 +144,12 @@ slicetag_types = \ 'description' : 'Exclude this slice from MyOps until given date (YYYYMMDD)', 'category' : 'slice/myops', 'min_role_id' : 10} , + + # DistributedRateLimiting slice + {'tagname': "drl", + 'description': "Is a default Distributed Rate Limiting slice (1) or not (0 or unset)", + 'category' : 'slice/general', + 'min_role_id': 10}, ] # add in the platform supported rlimits to the default_attribute_types diff --git a/db-config.d/14-drl_slice b/db-config.d/14-drl_slice new file mode 100644 index 0000000..488b893 --- /dev/null +++ b/db-config.d/14-drl_slice @@ -0,0 +1,29 @@ +# Create/update system slices + +# get the MyPLC url +url = GetMyPLCURL() + +description = """DistributedRateLimiting Service. +Distributed rate limiting allows administrators to set a limit on the aggregate +outgoing traffic rate for a set of nodes without putting a single static limit +on any individual node. Given an aggregate rate limit, the participating nodes +each use a portion of the limit according to the current traffic demands at the nodes.""" + +slice = \ +{ + 'name': plc['slice_prefix'] + "_drl", + 'description': description, + 'url': url, + 'instantiation': "plc-instantiated", + # Renew forever (minus one day, work around date conversion weirdness) + 'expires': 0x7fffffff - (60 * 60 * 24) +} + +tags = \ +[ + ('system', "1"), + ('drl', "1"), + ('capabilities', "CAP_NET_ADMIN"), +] + +SetSlice(slice,tags) -- 2.43.0