...
Here is the list of flags:
Most useful flags | |||||
---|---|---|---|---|---|
name | description | type | default value | limits | |
1 | allowedram | Sets amount RAM(in MB) allowed for service to use | int32 |
2048 | [1...10000] |
2 |
Should we use localhost or external address for service - used only for
development
t5_ip | Which ip to use in t5memory(default is any). Should be in format '1.1.1.1'. By default t5memory is listening all available ips | string | "" | |
3 | port | What port to listen on |
int32 | 4080 | [0...32768] | |||
4 | servicename | Sets service name to use in URL | string | t5memory | |
5 | servicethreads | Sets amount of worker threads for service(for proxygen) | int32 | 1 | [1...100] |
6 | t5loglevel | Sets t5memory log level threshold from DEVELOP(0) to TRANSACTION(6) |
int32 | 2(T5INFO) | [0...6] | |||
7 | triplesthreshold | Sets threshold to pre-fuzzy filtering based on hashes of neighbor tokens | int32 | 33 | [0...100] |
8 | timeout | Sets the timeout for service request handling in ms. | int32 |
180000 | [0...360000] | ||||
9 | |||||
10 | v | Show all VLOG(m) messages for m <= this. Overridable by --vmodule. This should be used to enable DEBUG(v=1) and DEVELOP(v=2) logs. If set to v=1, all logs, starting from DEBUG(1) level, would be added to the buffer of logs(instead of only request data), which would be printed in case of an error. If set to v=2, all logs would ignore the buffer and would be printed, starting from level=0(develop logs) | int32 | 0 | [0...2] |
11 | alsologtostderr | log messages go to stderr in addition to logfiles | bool | false | |
12 | logtostderr | log messages go to stderr instead of logfiles | bool | false | |
13 | log_dir | If specified, logfiles are written into this directory instead of the default logging directory. | string | ~/.t5memory/LOG/ | |
14 | stderrthreshold | log messages at or above this level are copied to stderr in addition to logfiles. This flag obsoletes --alsologtostderr. | int32 | 2 | |
15 | max_log_size | approx. maximum log file size (in MB). A value of 0 will be silently overridden to 1. | int32 | 1800 | |
16 | minloglevel | Messages logged at a lower level than this don't actually get logged anywhere | int32 | 0 | |
17 | stop_logging_if_full_disk | Stop attempting to log to disk if the disk is full | bool | false | |
18 | drop_log_memory | Drop in-memory buffers of log contents. Logs can grow very quickly and they are rarely read before they need to be evicted from memory. Instead, drop them from memory as soon as they are flushed to disk. | bool | true |
Other flags | ||
---|---|---|
Flags from /build/gflags-0sowem/gflags-2.2.2/src/gflags.cc: Flags from /build/gflags-0sowem/gflags-2.2.2/src/gflags_completions.cc: Flags from /build/gflags-0sowem/gflags-2.2.2/src/gflags_reporting.cc: Flags from /home/libs/proxygen/_build/deps/folly/folly/detail/MemoryIdler.cpp: Flags from /home/libs/proxygen/_build/deps/folly/folly/executors/IOThreadPoolExecutor.cpp: Flags from /home/libs/proxygen/_build/deps/folly/folly/executors/ThreadPoolExecutor.cpp: Flags from /home/libs/proxygen/_build/deps/folly/folly/experimental/observer/detail/ObserverManager.cpp: Flags from /home/libs/proxygen/_build/deps/folly/folly/synchronization/Hazptr.cpp: Flags from /home/libs/proxygen/_build/deps/wangle/wangle/ssl/SSLSessionCacheManager.cpp: Flags from /home/libs/proxygen/lib/utils/ZlibStreamCompressor.cpp: Flags from /home/or/workspace/translate5/translate5-tm-service-source/source/RestAPI/ProxygenHandler.cpp: Flags from src/logging.cc: Flags from src/utilities.cc: Flags from src/vlog_is_on.cc: |
...
The command and its parameters explained:
Command part | description | Multiple t5memory instances |
---|---|---|
docker run -d | Run the container detached, so in the background | |
--restart unless-stopped | Ensure that the container is restarted (f.e. after reboot) | |
--name t5memory | The label of the container | must be changed if multiple containers of t5memory should run. |
-p 127.0.0.1:4041:4040/tcp | The port mapping from where the internal port (4040) is mapped to on the host (127.0.0.1:4041) | must be changed if multiple containers of t5memory should run. |
-v /home/translate5tmservice/.t5memory-in-docker:/root/.t5memory/MEM | The data path on the host mapped into the container - this affects the TM storage and persistency! | should be changed if multiple containers of t5memory should run, there might be scenarios where multiple instances share the same files and therefore the same mapping |
--entrypoint /root/t5memory | The command which should be called in the container on startup | |
translate5/t5memory | The container image, with any version tag the latest image locally available is used. A version tag might by added here: translate5/t5memory:0.3.17 | When running multiple versions with different versions, version tag should be change accordingly. |
--port=4040 --alsologtostderr=1 --v=0 | The parameters passed to the command defined in --entrypoint, so direct t5memory parameters |
Update of the above running container
...