Skip to content

Paranna smartmet-serverin Dockerfileä #66

@oksman

Description

@oksman

Repossa https://github.com/fmidev/docker-smartmetserver on tässä helm chartissa käytettävä Dockerfile.

Joitain huomioita, joilla voi olla vaikutusta helm chartin käyttöön:

Lisäksi serverille voi antaa seuraavia käynnistysoptioita, joiden konffausmahdollisuus voi olla hyödyksi. Nykyisessä entrypointissa ajetaan serveri pystyyn defaulteilla (https://github.com/fmidev/docker-smartmetserver/blob/master/docker-entrypoint.sh)

/sbin/smartmetd --help
Usage: /sbin/smartmetd [options]

Allowed options:
  -h [ --help ]                         print out help message
  -V [ --version ]                      display version number
  -N [ --adminthreads ] arg             set the number of threads for admin
                                        queries (default=100%)
  -Q [ --maxadminrequeuesize ] arg (=100)
                                        set the maximum requeue size for admin
                                        queries
  -N [ --slowthreads ] arg              set the number of threads for slow
                                        queries (default=100%)
  -Q [ --maxslowrequeuesize ] arg (=100)
                                        set the maximum requeue size for slow
                                        queries
  -n [ --fastthreads ] arg              set the number of threads for fast
                                        queries (default=100%)
  -q [ --maxfastrequeuesize ] arg (=100)
                                        set the maximum requeue size for fast
                                        queries
  --minactiverequests arg (=50)         set the initial number of allowed
                                        simultaneous active requests
  --maxactiverequests arg (=100)        set the maximum number of simultaneous
                                        active requests
  --maxactiverestartrequests arg (=50)  reset the maximum number of allowed
                                        simultaneous active requests when max
                                        has been reached
  --requestlimitrate arg (=10)          set the increase rate for maximum
                                        number of simultaneous active requests
  --alertlimit arg (=100)               active requests limit for running the
                                        alert script
  --alertscript arg                     command to run the active requests
                                        limit is broken
  --maxrequestsize arg (=131072)        set the maximum allowed size for
                                        requests
  -d [ --debug ]                        set debug mode on
  -v [ --verbose ]                      set verbose mode on
  --quiet                               set quiet mode on
  --stacktrace                          enable stack trace on crashes
  --coredump_filter arg                 coredump mask
  --logrequests                         print all incoming requests
  -c [ --configfile ] arg (=/etc/smartmet/smartmet.conf)
                                        set the configuration file
  -L [ --libdir ] arg (=/usr/share/smartmet)
                                        set the library directory
  -l [ --locale ] arg (=fi_FI.UTF-8)    default locale
  -p [ --port ] arg (=8080)             set the HTTP port
  -t [ --timeout ] arg (=60)            set the server timeout in seconds
  -u [ --user ] arg                     set the username the server is running
                                        as
  -z [ --compress ]                     enable compression
  -Z [ --compresslimit ] arg (=1000)    compression size limit in bytes
  -e [ --defaultlogging ]               make request logs by default
  -a [ --accesslogdir ] arg (=/var/log/smartmet)
                                        access log directory
  --new-handler arg (=default)          new_handler for OOM situations
                                        (default/bad_alloc/terminate)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsmartmet-serversmartmet server charttiin liittyvät issuet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions