Initial ONAP Synapse commit
[aai/data-router.git] / ajsc-shared-config / etc / csm-config-app.properties
1 Global.ExtendedProperty.AuthoritativeServers=${ChangeMe_csm.acfshost}:${ChangeMe_csm.acfsport}
2
3 #Possible working server for troubleshooting csm related items (used when testing/using invokeService or invokeAdapter components)
4 #Global.ExtendedProperty.AuthoritativeServers=q399csi1a1.vci.att.com:27550
5 #
6 # The settings in this file control the behavior of the CSM Framework. 
7 # The majority of the settings in this file adhere to the following
8 # pattern:
9
10 #  [EntityType].[EntityId].[PropertyName]=[PropertyValue]
11
12 # Where:
13
14 #  [EntityType]    Identifies the type of entity (service or
15 #                  service group) that's being configured.
16 #  [EntityId]      Identifies the individual entity.
17 #  [PropertyName]  Identifies the property that is being set.
18 #  [PropertyValue] Is the actual property value.
19
20 # In the formatting sample above, the EntityType can be setto one of the
21 # following values:
22
23 #  * 'Service' if an individual service is being configured.
24 #  * 'Group 'if a service group is being configured.
25
26 # The reference to 'entity' in the above description is intentionally
27 # generic.  The CSM Framework supports the configuration of individual
28 # services as well as groups of services.  The type of entity that is
29 # actually being configured is determined by the value of the
30 # [EntityType] portion of the property.
31
32 # There are two values for [EntityId] that have a special meaning within
33 # the CSM Framework:
34
35
36 # DefaultService - Identifies the default configuration for any service
37 #     that is not explicitly configured elsewhere in this file.
38
39 # DefaultServiceGroup - This identifies the entity that provides the
40 #     default configuration for any service group that is not explicitly
41 #     configured elsewhere in this file.
42
43 # DO NOT use either of these as the identifier for any of your
44 # application-specific services or service groups.
45
46 # The CSM Framework treats all entity identifiers in a case-insensitive
47 # manner.  The entity ids 'Service1' and 'SERVICE1' are equivalant.  All
48 # properties with the same [EntityId] will be applied to the same
49 # configuration.  The CSM Framework framework also treats property names
50 # in a case-insensitive manner.  'MaxRequestCount' and 'MAXREQUESTCOUNT'
51 # are considered equivalent within the CSM framework.
52
53 # The following properties are supported by the CSM Framework.  Any
54 # properties that are entity-specific will include the '[EntityId].'
55 # prefix.
56
57 # [EntityType].[EntityId].Enabled - Indicates if the entity is enabled
58 #     or disabled by default.  The value of this property must be either
59 #     'true' or 'false'.
60
61 # [EntityType].[EntityId].MaxRequestCount - The maximum number of
62 #     requests that can be running at any point in time.  Once this limit is
63 #     reached, the service is considered  to be 'flooded', and subsequent
64 #     requests are refused until the request count drops to the level
65 #     specified by the RestartThreshold property.  Once the restart
66 #     threshold is reached, the service will be 'restarted' based on the
67 #     values of the 'RestartFrequency' and 'RestartIncrement' properties.
68 #     The value of this property must be a numeric value.
69 #     The default value for this property is 20.
70
71 # [EntityType].[EntityId].MaxStalledRequestCount - the maximum number of
72 #     'stalled' requests that are allowed before subsequent requests are
73 #     refused
74 #     The value of this property must be a numeric value.
75 #     The default value for this property is 10.
76
77 # [EntityType].[EntityId].RestartThreshold - the process count level at
78 #     which requests will be allowed to proceed whenever a service becomes
79 #     'flooded'.  This property is only used if the total process count
80 #     reaches the level set by the 'MaxRequestCount' property.  Once that
81 #     occurs, subsequent requests will be refused until the active request
82 #     count drops to the level specified by this property.  Once the active
83 #     request count drops to the level specified by this property, the
84 #     service will be 'restarted' based on the values of the
85 #     'RestartFrequency' and 'RestartIncrement' properties.  To cause the
86 #     CSM framework to allow subsequent requests to proceed as soon as the
87 #     active request count drops below level level set by the
88 #     'MaxRequestCount' property, just set this property to either -1 or 1
89 #     less than the value of the 'MaxRequestCount' property.
90 #     The value of this property must be a numeric value.
91 #     The default value for this property is -1.
92
93 # [EntityType].[EntityId].RestartIncrement - This property, along with
94 #     the 'RestartFrequency' property helps determine how quickly the active
95 #     request count will rise to the 'maximum request count' whenever a
96 #     service is 'restarted' after becoming 'flooded'. The
97 #     'RestartFrequency' property determines how frequenty the permissable
98 #     number of active requests will be increased.  This property determines
99 #     how much the permissible number of active requests will increase by
100 #     whenever it is raised.  If this property is set to a positive value,
101 #     then the 'RestartFrequency' property must also be set to a positive
102 #     value.  If this property is set to 0, then the 'RestartFrequency'
103 #     property must also be set to 0.  In other words, either both
104 #     properties are 0 or both properties are greater than 0.  When both
105 #     properties are set to 0, then the permissable number of active
106 #     requests immediately rises back up to the maximum request count once
107 #     it has droppedback down to the 'restart threshold'.  When both
108 #     properties are greater than 0, then the permissable number of active
109 #     requests gradually rises to the maximum request count.
110 #     The value of this property must be a numeric value greater than or equal to 0.
111 #     The default value for this property is 0.
112
113 # [EntityType].[EntityId].RestartFrequency - This property, along with
114 #     the 'RestartIncrement' property helps determine how quickly the active
115 #     request count will rise to the 'maximum request count' whenever a
116 #     service is 'restarted' after becoming 'flooded'. The
117 #     'RestartIncrement' property determines how quickly the permissable
118 #     number of active requests will be increased.  This property determines
119 #     how frequently  that increase will occur.  If this property is set to
120 #     a positive value, then the 'RestartIncrement' property must also be
121 #     set to a positive value.  If this property is set to 0, then the
122 #     'RestartIncrement' property must also be set to 0.  In other words,
123 #     either both properties are 0 or both properties are greater than 0. 
124 #     When both properties are set to 0, then the permissable number of
125 #     active requests immediately rises back up to the maximum request count
126 #     once it has droppedback down to the 'restart threshold'.  When both
127 #     properties are greater than 0, then the permissable number of active
128 #     requests gradually rises to the maximum request count.
129 #     The value of this property must be a numeric value greater than or equal to 0.
130 #     The default value for this property is 0.
131
132 # [EntityType].[EntityId].ServiceGroupId - This property is only
133 #     relevant for entities that are configured as services (i.e. the
134 #     [EntityType] portion of the property is set to 'Service').  When the
135 #     'ServiceGroupId' property is set to a non-blank value, the behavior of
136 #     the service is controled by the configuration of the corresponding
137 #     service group.  There is no default value for this property.
138
139 # [EntityType].[EntityId].Timeout - the timeout, in milliseconds, for
140 #     each process that is controlled by this configuration.  Once the
141 #     duration of a process exceeds this value, the process will be
142 #     considered to have entered a 'stalled' state.  The default value for
143 #     this property is 10000.
144
145 # FrameworkEnabled: - This is the one property that is not specific to a
146 #     single entity.  This property determines whether the entire CSM
147 #     Framework is enabled or disabled.  When disabled, the CSM Framework
148 #     does not track any process counts.  All requests to access a service
149 #     are allowed, regardless of the current level of activity.  The value
150 #     of this property must be either 'true' or 'false'.
151
152
153 #
154 # Enables the CSM Framework so that it can manage interactions with external
155 # services and/or resources.  To disable the CSM Framework, simply set
156 # this property to false.
157 #
158 FrameworkEnabled=true
159
160 #
161 # These are the default settings for any service that is no explicitly configured
162 # below.  A few things to note about this configuration:
163 #  1) The "Enabled" property is not explicitly set.  Instead, we are relying
164 #     on the default value of 'true'.
165 #  2) The Timeout and Type properties are also not explicitly set.  Again, we
166 #     are relying on the default values for these properties.
167 #  
168 Service.DefaultService.Enabled=true
169 Service.DefaultService.MaxRequestCount=30
170 Service.DefaultService.MaxStalledRequestCount=20
171 Service.DefaultService.Timeout=30000
172 Service.DefaultService.RestartThreshold=-1
173 Service.DefaultService.AutoPurgeAfter=150000
174
175
176 #
177 # These are the default settings for any service group that is referenced in 
178 # a service configuration but not configured below.
179
180 # Currently CSI does not use any service group configurations!
181 #
182 #Group.DefaultGroup.MaxRequestCount=-1
183 #Group.DefaultGroup.MaxStalledRequestCount=-1
184 #Group.DefaultGroup.RestartThreshold=-1
185 #Group.DefaultGroup.Timeout=-1