2 Configuration
2.1 Arguments of serve()
serve().
| Argument | Default | Description |
|---|---|---|
port |
NULL |
TCP port, from 1024 to 49151. NULL uses the environment variable RTEMISLIVE_PORT if it is set, and 5757 otherwise. |
token |
NULL |
Token that a client must present. NULL generates a token. |
origins |
NULL |
Origins of the web pages that may connect. NULL allows https://live.rtemis.org, http://localhost:3000, and http://127.0.0.1:3000; a supplied vector replaces these. |
n_daemons |
1L |
Number of worker processes. |
max_concurrent |
n_daemons |
Number of jobs that run at the same time; further jobs wait in a queue. |
data_ttl |
3600 |
Seconds after its last use at which an uploaded dataset is removed. |
session_ttl |
86400 |
Seconds after its last activity at which a session without a connection is removed. |
verbosity |
1L |
0L suppresses the startup messages, including the token; supply token in that case. |
2.2 Workers
One worker runs one job at a time, and the job can use every core through the execution configuration. With more workers, jobs that run at the same time share the cores:
rtemis.server::serve(n_daemons = 2L)