Container-memory-limit does't work

Hello everyone!

I can’t figure out how to set container-memory-limit value. I have tried, but ShinyProxy runs containers without memory usage limitations. Docker host configuration is OK - it runs containers with memory limits.

Here is my application.yml file. What is wrong?

spring:
  servlet:
    multipart:
      max-file-size: 80MB
      max-request-size: 80MB
proxy:
  title: APP
  template-path: ./templates/1col
  favicon-path: favicon.png
  logo-url: http://www.openanalytics.eu/sites/www.openanalytics.eu/themes/oa/logo.png
  landing-page: /app_direct/my_app
  port: 8080
  heartbeat-timeout: 60000
  authentication: webservice
  webservice:
    authentication-url: https://127.0.0.1:8081/api/auth/check
    authentication-request-body: "{email: '%s', password: '%s'}" 
  hide-navbar: true
  admin-groups: admins
  container-backend: docker
  docker:
    internal-networking: true
    container-memory-limit: "1G"
    container-memory-request: "300M"
    #container-cpu-limit: 0.3, 5
  #container-log-path: ./log
  specs:
  - id: Myapp
    display-name: Test_NAME
    description: Test
    container-cmd: ["R", "-e shiny::runApp('/home/dockerapp/app',port=3838,host='0.0.0.0')"]
    container-image: myimage

B.W. Alex

Hi @Alexey_Kuzmrnkov,

I do not have a solution unfortunately, but it seems your topic is related to https://github.com/openanalytics/shinyproxy/issues/183. Openanalytics is aware that it is a bug.

Best regards,

Michael

1 Like

@Alexey_Kuzmrnkov, @michaelhogersnplm,

This turned out to be an issue with the documentation rather than a bug in ShinyProxy. The fields work, but need to be specified at the level of the individual specs (instead of at the level of the container back-end). Correct documentation is now available in the apps section.

Best,
Tobias

1 Like