Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
2e92a941
Commit
2e92a941
authored
5 years ago
by
Ludovic Claude
Browse files
Options
Downloads
Patches
Plain Diff
Update Akka configuration
parent
30bb6a43
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/resources/application.conf
+14
-2
14 additions, 2 deletions
src/main/resources/application.conf
src/main/resources/reference.conf
+175
-196
175 additions, 196 deletions
src/main/resources/reference.conf
with
189 additions
and
198 deletions
src/main/resources/application.conf
+
14
−
2
View file @
2e92a941
# No specific configuration for Portal backend
# All configuration is related to Akka
app
{
# Name of the application
name
=
"Portal backend"
# Type of the application
type
=
"Spring"
clusterSystemName
= ${
clustering
.
cluster
.
name
}
}
clustering
{
ip
=
"127.0.0.1"
ip
= ${?
CLUSTER_IP
}
port
=
4489
port
= ${?
CLUSTER_PORT
}
}
This diff is collapsed.
Click to expand it.
src/main/resources/reference.conf
+
175
−
196
View file @
2e92a941
app
{
# Name of the application
name
=
"Portal backend"
# Type of the application
type
=
"Spring"
clusterSystemName
= ${
clustering
.
cluster
.
name
}
}
# Merged with defaults in woken-messages/reference.conf
clustering
{
ip
=
"127.0.0.1"
ip
= ${?
CLUSTER_IP
}
port
=
4489
port
= ${?
CLUSTER_PORT
}
}
# Merged with defaults in woken-messages/reference.conf
clustering
{
ip
=
"127.0.0.1"
ip
= ${?
CLUSTER_IP
}
port
=
8088
port
= ${?
CLUSTER_PORT
}
}
# ============================================ #
# kamon-system-metrics reference configuration #
# ============================================ #
...
...
@@ -2605,180 +2582,7 @@ akka {
}
}
# ========================================= #
# Shared Woken Reference Configuration #
# ========================================= #
app
{
# Name of the application
name
=
""
name
= ${?
APP_NAME
}
# Type of the application
type
=
"Scala"
type
= ${?
APP_TYPE
}
# Version of the application
version
=
""
version
= ${?
VERSION
}
# Date when this application was built
buildDate
=
""
buildDate
= ${?
BUILD_DATE
}
}
datacenter
{
# Location of the datacenter
location
=
"dev"
location
= ${?
DATA_CENTER_LOCATION
}
host
=
""
host
= ${?
HOST
}
host
= ${?
DATA_CENTER_SERVER
}
# Container orchestration
containerOrchestration
=
"mesos"
containerOrchestration
= ${?
CONTAINER_ORCHESTRATION
}
# Mesos properties
mesos
{
containerName
=
""
containerName
= ${?
MESOS_CONTAINER_NAME
}
dockerImage
=
""
dockerImage
= ${?
MARATHON_APP_DOCKER_IMAGE
}
resourceCpu
=
""
resourceCpu
= ${?
MARATHON_APP_RESOURCE_CPUS
}
resourceMem
=
""
resourceMem
= ${?
MARATHON_APP_RESOURCE_MEM
}
labels
=
""
labels
= ${?
MARATHON_APP_LABELS
}
}
}
bugsnag
{
apiKey
=
""
apiKey
= ${?
BUGSNAG_KEY
}
# Release stage used when reporting errors. Values are dev, staging, production
releaseStage
=
"dev"
releaseStage
= ${?
RELEASE_STAGE
}
}
# Common settings for Akka
akka
{
loglevel
=
"WARNING"
loglevel
= ${?
AKKA_LOG_LEVEL
}
stdout
-
loglevel
=
"WARNING"
stdout
-
loglevel
= ${?
AKKA_LOG_LEVEL
}
loggers
= [
"akka.event.slf4j.Slf4jLogger"
]
logging
-
filter
=
"akka.event.slf4j.Slf4jLoggingFilter"
log
-
config
-
on
-
start
=
off
log
-
config
-
on
-
start
= ${?
AKKA_LOG_CONFIG
}
log
-
dead
-
letters
=
10
log
-
dead
-
letters
-
during
-
shutdown
=
off
coordinated
-
shutdown
.
terminate
-
actor
-
system
=
on
actor
{
# provider = "cluster"
debug
{
receive
=
on
autoreceive
=
off
lifecycle
=
on
fsm
=
off
unhandled
=
on
event
-
stream
=
off
}
serializers
{
woken
-
messages
-
serializer
=
"ch.chuv.lren.woken.messages.AkkaSerializer"
}
serialization
-
bindings
{
"ch.chuv.lren.woken.messages.Ping"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.Pong"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.ComponentQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.ComponentQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.VersionQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.VersionResponse"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.datasets.DatasetsQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.datasets.DatasetsResponse"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.datasets.TablesQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.datasets.TablesResponse"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.MethodsQuery$"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.MethodsResponse"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.MiningQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.ExperimentQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.QueryResult"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.validation.ValidationQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.validation.ValidationResult"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.validation.ScoringQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.validation.ScoringResult"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.variables.VariablesForDatasetsQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.variables.VariablesForDatasetsResponse"
=
woken
-
messages
-
serializer
}
enable
-
additional
-
serialization
-
bindings
=
on
allow
-
java
-
serialization
=
off
}
remote
{
log
-
sent
-
messages
=
off
log
-
received
-
messages
=
off
log
-
remote
-
lifecycle
-
events
=
off
watch
-
failure
-
detector
{
acceptable
-
heartbeat
-
pause
=
20
s
}
}
http
{
server
{
idle
-
timeout
=
300
s
request
-
timeout
=
180
s
ssl
-
encryption
=
off
ssl
-
tracing
=
on
}
client
{
idle
-
timeout
=
300
s
request
-
timeout
=
20
s
}
host
-
connection
-
pool
{
max
-
connections
=
128
max
-
open
-
requests
=
128
}
}
}
remoting
{
implementation
=
"artery"
# Alternative option is 'netty'
implementation
= ${?
AKKA_REMOTING
}
}
clustering
{
# IP address advertised by the Akka server
ip
=
"127.0.0.1"
ip
= ${?
CLUSTER_IP
}
# Define the default Akka port for your app
port
=
8088
port
= ${?
CLUSTER_PORT
}
# Definition of the seed used to bootstrap the cluster
seed
-
ip
=
"127.0.0.1"
seed
-
ip
= ${?
CLUSTER_IP
}
seed
-
ip
= ${?
WOKEN_PORT_8088_TCP_ADDR
}
seed
-
port
=
8088
seed
-
port
= ${?
WOKEN_PORT_8088_TCP_PORT
}
# Name of the Akka cluster
cluster
.
name
=
"woken"
cluster
.
name
= ${?
CLUSTER_NAME
}
}
########################################
# akka-http-cors Reference Config File #
########################################
...
...
@@ -4881,3 +4685,178 @@ ssl-config {
}
}
# ========================================= #
# Shared Woken Reference Configuration #
# ========================================= #
app
{
# Name of the application
name
=
""
name
= ${?
APP_NAME
}
# Type of the application
type
=
"Scala"
type
= ${?
APP_TYPE
}
# Version of the application
version
=
""
version
= ${?
VERSION
}
# Date when this application was built
buildDate
=
""
buildDate
= ${?
BUILD_DATE
}
}
datacenter
{
# Location of the datacenter
location
=
"dev"
location
= ${?
DATA_CENTER_LOCATION
}
host
=
""
host
= ${?
HOST
}
host
= ${?
DATA_CENTER_SERVER
}
# Container orchestration
containerOrchestration
=
"mesos"
containerOrchestration
= ${?
CONTAINER_ORCHESTRATION
}
# Mesos properties
mesos
{
containerName
=
""
containerName
= ${?
MESOS_CONTAINER_NAME
}
dockerImage
=
""
dockerImage
= ${?
MARATHON_APP_DOCKER_IMAGE
}
resourceCpu
=
""
resourceCpu
= ${?
MARATHON_APP_RESOURCE_CPUS
}
resourceMem
=
""
resourceMem
= ${?
MARATHON_APP_RESOURCE_MEM
}
labels
=
""
labels
= ${?
MARATHON_APP_LABELS
}
}
}
bugsnag
{
apiKey
=
""
apiKey
= ${?
BUGSNAG_KEY
}
# Release stage used when reporting errors. Values are dev, staging, production
releaseStage
=
"dev"
releaseStage
= ${?
RELEASE_STAGE
}
}
# Common settings for Akka
akka
{
loglevel
=
"WARNING"
loglevel
= ${?
AKKA_LOG_LEVEL
}
stdout
-
loglevel
=
"WARNING"
stdout
-
loglevel
= ${?
AKKA_LOG_LEVEL
}
loggers
= [
"akka.event.slf4j.Slf4jLogger"
]
logging
-
filter
=
"akka.event.slf4j.Slf4jLoggingFilter"
log
-
config
-
on
-
start
=
off
log
-
config
-
on
-
start
= ${?
AKKA_LOG_CONFIG
}
log
-
dead
-
letters
=
10
log
-
dead
-
letters
-
during
-
shutdown
=
off
coordinated
-
shutdown
.
terminate
-
actor
-
system
=
on
actor
{
# provider = "cluster"
debug
{
receive
=
on
autoreceive
=
off
lifecycle
=
on
fsm
=
off
unhandled
=
on
event
-
stream
=
off
}
serializers
{
woken
-
messages
-
serializer
=
"ch.chuv.lren.woken.messages.AkkaSerializer"
}
serialization
-
bindings
{
"ch.chuv.lren.woken.messages.Ping"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.Pong"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.ComponentQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.ComponentQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.VersionQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.VersionResponse"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.datasets.DatasetsQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.datasets.DatasetsResponse"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.datasets.TablesQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.datasets.TablesResponse"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.MethodsQuery$"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.MethodsResponse"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.MiningQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.ExperimentQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.query.QueryResult"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.validation.ValidationQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.validation.ValidationResult"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.validation.ScoringQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.validation.ScoringResult"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.variables.VariablesForDatasetsQuery"
=
woken
-
messages
-
serializer
"ch.chuv.lren.woken.messages.variables.VariablesForDatasetsResponse"
=
woken
-
messages
-
serializer
}
enable
-
additional
-
serialization
-
bindings
=
on
allow
-
java
-
serialization
=
off
}
remote
{
log
-
sent
-
messages
=
on
log
-
received
-
messages
=
on
log
-
remote
-
lifecycle
-
events
=
on
watch
-
failure
-
detector
{
acceptable
-
heartbeat
-
pause
=
20
s
}
}
http
{
server
{
idle
-
timeout
=
300
s
request
-
timeout
=
180
s
ssl
-
encryption
=
off
ssl
-
tracing
=
on
}
client
{
idle
-
timeout
=
300
s
request
-
timeout
=
20
s
}
host
-
connection
-
pool
{
max
-
connections
=
128
max
-
open
-
requests
=
128
}
}
}
remoting
{
implementation
=
"artery"
# Alternative option is 'netty'
implementation
= ${?
AKKA_REMOTING
}
}
clustering
{
# IP address advertised by the Akka server
ip
=
"127.0.0.1"
ip
= ${?
CLUSTER_IP
}
# Define the default Akka port for your app
port
=
8088
port
= ${?
CLUSTER_PORT
}
# Definition of the seed used to bootstrap the cluster
seed
-
ip
=
"127.0.0.1"
seed
-
ip
= ${?
CLUSTER_IP
}
seed
-
ip
= ${?
WOKEN_PORT_8088_TCP_ADDR
}
seed
-
port
=
8088
seed
-
port
= ${?
WOKEN_PORT_8088_TCP_PORT
}
# Name of the Akka cluster
cluster
.
name
=
"woken"
cluster
.
name
= ${?
CLUSTER_NAME
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment