Migrating from v1.x to v2.0
The following section lists the main new features introduced with layline.io major release 2.0. Some of the new feature require to follow the described steps to ensure environment and processing is working correctly.
Akka to Pekko switch
layline.io switched from akka to pekko. This in return requires adaptations in the appropriate application.conf
files for config-server and reactive-engine(s).
Depending on your OS you can locate the application.conf
like the following:
- Windows
- macOS
- Linux
C:\Users\<username>\.layline
/Users/<username>/.layline/
$HOME/.layline/
Configuration Server
Please perform the following steps to adapt your configuration:
- Find
application.conf
within subfolderconfig-server
- Change config entry
akka
topekko
- Change config entry
akka-persistence-jdbc
topekko-persistence-jdbc
layline {
}
## BEFORE: akka
## AFTER: pekko
pekko {
persistence {
journal {
plugin = "jdbc-journal"
}
snapshot-store {
plugin = "jdbc-snapshot-store"
}
}
}
## BEFORE: akka-persistence-jdbc
## AFTER: pekko-persistence-jdbc
pekko-persistence-jdbc {
[...]
Reactive Engine(s)
Adapting the reactive engine(s) configuration can become a bit more complex in case your environment deviates from the default installation, e.g. more than one reactive engine has been configured.
Please perform the following steps to adapt your default configuration:
- Find
application.conf
within subfolderreactive-engine
- Change config entry
akka
topekko
- Change config entry
akka-persistence-jdbc
topekko-persistence-jdbc
layline {
}
## BEFORE: akka
## AFTER: pekko
pekko {
persistence {
journal {
plugin = "jdbc-journal"
}
snapshot-store {
plugin = "jdbc-snapshot-store"
}
}
}
## BEFORE: akka-persistence-jdbc
## AFTER: pekko-persistence-jdbc
pekko-persistence-jdbc {
[...]
Any additional configuration entries need to be checked towards the akka keyword and replaced by the pekko keyword.
Example:
pekko {
loglevel = ERROR
## BEFORE: "io.layline.common.akka.LoggingEventListener"
## AFTER: "io.layline.common.pekko.LoggingEventListener"
loggers = [
"io.layline.common.pekko.LoggingEventListener"
]
[...]
In case of questions, please don't hesitate to contact us at support@layline.io.