Skip to content

Commit 90fc0e6

Browse files
Property changes (#284)
* Property changes
1 parent 6a19a60 commit 90fc0e6

File tree

3 files changed

+31
-78
lines changed

3 files changed

+31
-78
lines changed
Lines changed: 29 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,59 @@
1-
spring.application.name=eiffel-intelligence
2-
3-
# Port where Eiffel Intelligence will run
1+
spring.application.name: eiffel-intelligence
42
server.port: 8090
53

6-
# Path to file containing aggregation rules
7-
# If the path is a url it needs to include the http(s) protocol.
4+
logging.level.root: OFF
5+
logging.level.org.springframework.web: ERROR
6+
logging.level.com.ericsson.ei: ERROR
7+
88
rules.path: /rules/ArtifactRules-Eiffel-Agen-Version.json
9-
# The marker to be replaced with an Eiffel event ID extracted from IdentifyRules
109
rules.replacement.marker: %IdentifyRulesEventId%
1110

12-
# This property needs to be enabled in order to test new aggregation rules on an
13-
# existing or artificially created set of events.
1411
# WARNING! Do not enable this in a production environment!
15-
testaggregated.enabled: true
12+
test.aggregation.enabled: true
1613

17-
# Logging levels can be set with the flag below for the top packages deactivated by
18-
# default because Travis will fail due to log file size. It is possible to only
19-
# activate logging for a certain package under these top packages.
20-
logging.level.root: OFF
21-
logging.level.org.springframework.web: ERROR
22-
logging.level.com.ericsson.ei: ERROR
23-
24-
# Details for connection to RabbitMQ
2514
rabbitmq.host: localhost
2615
rabbitmq.port: 5672
2716
rabbitmq.user: myuser
2817
rabbitmq.password: myuser
29-
# Check configuration documentation for using jasypt encrypted passswords
30-
# Valid TLS versions: 'TLSv1.2', 'TLSv1.1', 'TLSv1', 'TLS', 'SSLv3', 'SSLv2', 'SSL'
31-
rabbitmq.tlsVersion:
18+
rabbitmq.tls.version:
3219
rabbitmq.exchange.name: ei-exchange
33-
rabbitmq.domainId: ei-domain
34-
rabbitmq.componentName: eiffel-intelligence
35-
rabbitmq.consumerName: messageConsumer
36-
rabbitmq.queue.durable:true
37-
rabbitmq.binding.key:#
38-
rabbitmq.waitlist.queue.suffix:waitlist
20+
rabbitmq.domain.id: ei-domain
21+
rabbitmq.component.name: eiffel-intelligence
22+
rabbitmq.queue.suffix: messageQueue
23+
rabbitmq.queue.durable: true
24+
rabbitmq.binding.key: #
25+
rabbitmq.waitlist.queue.suffix: waitList
3926

40-
# Details for connection to mongoDB database
4127
spring.data.mongodb.uri: mongodb://localhost:27017
4228
spring.data.mongodb.database: eiffel_intelligence
4329

44-
# Configure the session storage expiration time for logged in users of Eiffel Intelligence front-end
45-
server.session-timeout: 1200
46-
# Configure the database collection name to store sessions
30+
server.session.timeout: 1200
4731
sessions.collection.name: sessions
4832

49-
# Name of the database collection where aggregated objects are stored
50-
aggregated.collection.name: aggregated_objects
51-
# Configure time-to-live value (seconds) for aggregated objects. This needs to be set if
52-
# using the example rule set 'AllEventsRules' to avoid the storage growing too large.
53-
# Recommended setting is 10 minutes.
54-
aggregated.collection.ttlValue:
55-
# The name of the database collection where to store the mapping between
56-
# aggregated objects and id of the Eiffel events that contributed to those
57-
event_object_map.collection.name: event_object_map
58-
# Name of the database collection where subscriptions are stored
59-
subscription.collection.name: subscription
60-
# Name of the database collection where we store pair of 'subscription:aggregated object'
61-
# where notification has been sent and should not be repeated
62-
subscription.collection.repeatFlagHandlerName: subscription_repeat_handler
63-
# The waitlist contains Eiffel events which are waiting to be aggregated
64-
# Configure the database collection name for the waitlist
33+
aggregations.collection.name: aggregations
34+
aggregations.collection.ttl:
35+
event.object.map.collection.name: event_object_map
36+
subscriptions.collection.name: subscriptions
6537
waitlist.collection.name: wait_list
66-
# Set the time-to-live value for Eiffel events in the waitlist database (seconds)
67-
waitlist.collection.ttlValue: 600
68-
# Resend information for unprocessed events in wait list, time in milliseconds
69-
waitlist.initialDelayResend: 2000
70-
waitlist.fixedRateResend: 15000
71-
# Name of the collection where failed notifications are stored
72-
failed.notification.collection-name: failed_notifications
73-
# Number of retries if a notification fail
74-
notification.failAttempt: 3
75-
# Configure time-to-live for failed notifications in database (seconds)
76-
notification.ttl.value: 600
38+
waitlist.collection.ttl: 600
39+
waitlist.resend.initial.delay: 2000
40+
waitlist.resend.fixed.rate: 15000
41+
failed.notifications.collection.name: failed_notifications
42+
failed.notifications.collection.ttl: 600
43+
notification.retry: 3
7744

78-
# Configure email sender and default subject for email notifications.
7945
email.sender: noreply@ericsson.com
8046
email.subject: Email Subscription Notification
8147

82-
# Configure the email server to route email notifications through.
8348
spring.mail.host:
8449
spring.mail.port:
8550
spring.mail.username:
8651
spring.mail.password:
8752
spring.mail.properties.mail.smtp.auth: false
8853
spring.mail.properties.mail.smtp.starttls.enable: false
8954

90-
# Url for downstream and upstream search in event repository. Configuring this
91-
# enables Eiffel Intelligence to aggregate historical Eiffel events.
92-
#er.url: http://localhost:8080/search/
93-
er.url:
55+
event.repository.url:
9456

95-
# Settings for ldap server if ldap authentication is needed.
96-
# For security reasons and to avoid authorization problems this
97-
# password should be encoded in base64. It will be decoded in EndpointSecurity.java.
98-
#
99-
# Password field can also be Jasypt encoded, check configuration documentation for info.
10057
ldap.enabled: true
10158
ldap.server.list: [\
10259
{\
@@ -117,16 +74,12 @@ ldap.server.list: [\
11774
11875
### DEVELOPER SETTINGS
11976

120-
# We reuse the same version as we use in our unit tests
12177
spring.mongodb.embedded.version: 3.4.1
12278
# We remove the embedded mongodb in tests since in most of them we set up our own before Spring
12379
# starts and activate it manually in tests where we need the Spring's own embedded mongo DB
124-
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration
125-
126-
# Threading settings
127-
threads.corePoolSize: 100
128-
threads.queueCapacity: 5000
129-
threads.maxPoolSize: 150
80+
spring.autoconfigure.exclude: org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration
13081

131-
# WaitList-worker and Scheduling task executor thread settings
82+
threads.core.pool.size: 100
83+
threads.queue.capacity: 5000
84+
threads.max.pool.size: 150
13285
scheduled.threadpool.size: 100

src/main/resources/static/js/global-variables.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var statusType = {
3434
var statusText = {
3535
BACKEND_DOWN: "<strong>Back-end, MongoDB and/or RabbitMQ is down!</strong> Wait for them go up or switch to another back-end before continuing!",
3636
UNKNOWN_BACK_END_STATUS: "<strong>Back-end status is unknown!</strong> Wait for it to update or switch to another back-end before continuing!",
37-
TEST_RULES_DISABLED: "<strong>Test Rule service is disabled!</strong> To enable it set the backend property [testaggregated.enabled] as [true]"
37+
TEST_RULES_DISABLED: "<strong>Test Rule service is disabled!</strong> To enable it set the backend property [test.aggregation.enabled] as [true]"
3838
};
3939

4040
var backEndStatus = true;

wiki/curl-examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Example curl commands to these endpoints [can be found here](https://github.com/
306306

307307
For these endpoints to be reachable the Eiffel Intelligence back-end
308308
[needs to be configured](https://github.com/eiffel-community/eiffel-intelligence/blob/master/src/main/resources/application.properties)
309-
with `testaggregated.enabled: true`. The below command would result in a
309+
with `test.aggregation.enabled: true`. The below command would result in a
310310
json response of `{"status":true}` if this functionality is enabled.
311311

312312
curl -X GET -H "Content-type: application/json" localhost:8080/rule-test

0 commit comments

Comments
 (0)