Skip to the page
DataMosaic

Docs · Administration

Performance

How many hosts of a collection are queried at once, and how many runs are carried out at once. Both change with no restart.

Under Tenancy → Performance, on a self-hosted installation, for tenancy admins. Two figures, and each applies to every workspace on the server.

FigureWhat it limitsUnless you chooseRange
Hosts queried at onceHow many hosts of a collection one query is run on at the same time81 to 64
Runs at onceHow many scheduled checks and workflows the server carries out at the same time41 to 64

Type a figure and press Save. Nothing restarts.

#Hosts queried at once

A query on a collection is the same query sent to every host in it. Mosaic asks this many at the same time; as one answers, the next host is asked. A slow shop costs its own time and does not hold up the others.

Each host is a server of its own, so sixteen at a time is one connection to each of sixteen servers, never sixteen connections to one. What a higher figure costs is on the machine Mosaic runs on: every query in flight keeps its result in memory and a connection open.

Two hundred hosts at a second and a half each take about five minutes one at a time, under a minute at 8 and about twenty seconds at 16. The gain stops where the network or the server's memory does, so raise it in steps and time a run you know.

A change is followed from the next query. A query already running finishes at the figure it started with.

1 runs the hosts one after another.

#Runs at once

Work that starts on its own waits in a queue: a check on a schedule, and a workflow started by a schedule, a check's run, a webhook, or an API call that does not wait for the answer. This is how many of them the server carries out at the same time. The others wait their turn, and Observability → Jobs shows them waiting.

A run somebody starts by hand begins straight away and is not counted.

A change is followed straight away. Raised, waiting runs start within a couple of seconds. Lowered, nothing in hand is stopped: no new run starts until enough of them have finished.

#The two multiply

Each run queries its own collections. With 4 runs at once and 16 hosts at once, up to 4 × 16 = 64 queries can be open at the same time. The screen shows this product under the second figure as you type.

#Oracle in Thick mode

Thick mode is the Oracle setting that uses the Oracle Instant Client. Its driver runs 4 queries at a time on the server, whatever Hosts queried at once says, and Oracle hosts beyond 4 wait their turn there. The screen says so when Thick mode is on and the figure is higher.

That ceiling is not Mosaic's and cannot be changed while Mosaic runs. To raise it, set UV_THREADPOOL_SIZE where Mosaic is started, to at least the number of hosts you want asked at once, and restart it.

Oracle in Thin mode, the default, and every other database have no such ceiling.

#Set in the environment

MOSAIC_COLLECTION_CONCURRENCY and MOSAIC_JOB_CONCURRENCY set the same two figures where Mosaic is started. A figure set that way wins: the screen shows it and says which variable set it, and it cannot be changed there. Remove the variable and restart to choose on the screen.

#Who can, and what is recorded

  • Tenancy admins only.
  • Each change is written to the audit trail with the figure before and after. See Storage and the audit trail.
  • On Mosaic Cloud there is no Performance part: the servers are Mosaic's.

A self-hosted installation that runs its web server and its workers as separate processes picks a change up in the other processes within a minute. Runs at once is then per worker process.