General discussion of Lagom: https://www.lagomframework.com/ | Code of Conduct: https://www.lightbend.com/conduct | Forums: https://discuss.lagomframework.com | Commercial support from https://www.lightbend.com/
eventStream
again. Read side tables are just a different representation fo the journal
. As long as you don’t loose the journal you are fine (you could even delete the snapshots, but I’m not saying that is a good idea).
@humpahh_twitter to configure the Akka HTTP backend inside Play (which is what is powering Lagom under the covers), you need to prefix Akka HTTP settings with
play.server
. See https://www.playframework.com/documentation/2.6.x/SettingsAkkaHttp . So, in your case, I think you should use:play.server.akka.http.server.parsing.max-chunk-size
@humpahh_twitter you should keep in mind that Lagom’s DevMode uses a custom HTTP server which may ignore the settings inplay.server
scope.
@ignasi35 Thanks. How/where should I configure the settings or override them somehow if I want them to be in effect in DevMode? Having those configs in play.server {} doesn't seem to do the trick now in DevMode, gives same exception from akka.http
apiVersion: v1
data:
conf: |
foo.bar = "value"
play.http.secret.key = "play-http-secret-key-test"
kind: ConfigMap
metadata:
name: service-config
/opt/docker/conf/config/application.conf
include file("/opt/docker/conf/config/application.conf")
lagom.akka.dev-mode.config
in the settings. Note that it is a prefix and it will only affect the server. So, if you tune play.server.akka.http.server.parsing.max-chunk-size
I think you’d need to tune lagom.akka.dev-mode.config.akka.http.server.parsing.max-chunk-size
with the same values.
@Sureshkatweet_twitter
- ConfigMap
apiVersion: v1 data: conf: | foo.bar = "value" play.http.secret.key = "play-http-secret-key-test" kind: ConfigMap metadata: name: service-config
- Add ConfigMap data to a Volume
For example volume/opt/docker/conf/config/application.conf
- Add include to base configuration file
include file("/opt/docker/conf/config/application.conf")
- Profit! :smile:
PS: Of cource we have differente ConfigMap for every test (k8s namespace) and production environment.Thanks for quick reply @ihostage
PlayJsonSerializer
. It uses the runtime class to find the formatter but in many cases this could be anything. For example: Caused by: java.lang.RuntimeException: Missing play-json serializer for [scala.collection.immutable.HashMap$HashTrieMap]
when trying to return an immutable.Map
. Any solutions without having to catch these one by one and register them (and pray the class is public)?
lagom-javadsl-kafka-client_${scala.binary.version}
still have lagom-kafka-broker_2.12-1.5.0-M3
in the libraries? I’m bundling it all following the latest k8s how-to, lagom 1.5.0-M3, and fabric8’s docker-maven-plugin