system-adminUpdated 2026-05-28

System Configuration

Settings precedence chain
System Admin — Configuration tab with sectioned settings accordions.

What this covers

The Configuration tab in System Admin lets you tune platform-wide settings across five sections: authentication, daily maintenance schedule, query timeouts, result limits and rate limiting, and a read-only view of the environment variables from the .env file.

Tabs

TabPurpose
AuthSession lifetime and security settings.
Daily scheduleWhat time each daily maintenance task runs (aggregate cleanup, source schema check, AI advisor, predictive aggregate check, pocket table cleanup). Each shows a time picker in UTC.
TimeoutsSource database connect timeout and query timeout.
CeilingsMaximum result rows, chunk size, tenant query rate limiting.
EnvironmentRead-only view of values from the host .env file (database DSN, JWT key, ports, CORS).

Rate limiting and the per-replica ceiling

The Ceilings section sets two rate limits. The first, rate_limit.per_minute, caps how many requests each tenant may make per minute at the gateway — the doorway that business-intelligence tools like Excel and Power BI use to send their queries. The second, rate_limit.login_per_minute, is a stricter ceiling on login attempts from one client address per minute; it lives on the sign-in service and slows down password guessing. When a caller exceeds either limit, the platform returns HTTP 429 with a Retry-After header and stops serving them until the minute rolls over. The master switch rate_limit.enabled turns both on or off. The sign-in service applies a change at once, but the gateway reads its settings only when it starts, so a change to a rate limit reaches Excel, Power BI and JDBC traffic only after the gateway restarts (see Gateway settings apply after a gateway restart).

One thing these limits deliberately do not cover: the everyday screens inside the app — opening a model, browsing its tables and columns — are not counted against rate_limit.per_minute. Opening a single model can fire dozens of small lookups, and counting those against the tenant ceiling used to lock people out of their own model. Those internal screens are handled a different way, so the request ceiling stays focused on the real incoming queries from BI tools.

There is one thing to understand before you rely on these ceilings in production. The limit is counted per replica. Each running copy of a service (each worker process, or each instance when the platform scales out — for example on Cloud Run) keeps its own private tally in memory. If you run three replicas, a tenant can make up to three times the configured number of requests per minute, because each replica only sees a third of the traffic and none of them share a running total. The counters also reset to zero whenever a replica restarts or a new one starts up.

This is fine for a single-instance deployment (the usual local or small setup), where there is exactly one replica and the configured number is the real ceiling. It matters once you scale horizontally and want a single, shared ceiling across every replica. To get that, point the RATE_LIMIT_STORAGE_URI environment variable (in the host .env, shown read-only on the Environment tab) at a shared store such as a Redis or Memcached server — for example redis://my-redis-host:6379/0. With a shared store configured, all replicas count against the same buckets and the configured number becomes the true platform-wide ceiling. Leaving RATE_LIMIT_STORAGE_URI empty keeps the default per-replica in-memory behaviour.

Tip: if you are seeing more requests get through than the number you set, count your replicas first — the most common cause is the per-replica tally, not a broken limit. Either set RATE_LIMIT_STORAGE_URI to a shared store, or pin the replica count, or simply divide your intended ceiling by the number of replicas.

Internal service-to-service traffic (for example the gateway relaying a BI query to the model service) is intentionally exempt from these limits, so throttling never breaks query processing for connected BI tools.

Who can edit it

Only the system_admin role can read or write here. Tenant admins, modelers, and viewers do not see the tab. Backend endpoints (GET /api/v1/system/settings, PUT /api/v1/system/settings/{key}) reject any other role.

How values resolve

Every setting on this page is the platform default. A tenant admin can override individual keys at the tenant level; a project admin can further override at the project level; modelers can override at the model level. When a query, scheduler job, or API handler asks for a setting, the resolver walks model → project → tenant → system → registry default and returns the first non-null value. A null stored at any level means "explicitly unset, fall through".

Editing a setting

  1. Sign in as a system administrator and open System Admin → Configuration.
  2. Use the search box at the top to filter by key, section, or description.
  3. Find the setting you want to change. The default and the current value are displayed inline.
  4. Edit the value, then click Save. Reset restores the registry default for that key.

Background retry sweeps

Three background sweeps pick up work that could not be finished at the moment it was requested. Each has its time set by two settings in the Scheduler group, an hour and a minute (UTC), and each setting holds one cron field such as 1, */6 or *.

SweepSettingsDefaultWhat it picks up
Webhook retryscheduler.webhook_drain_hour, scheduler.webhook_drain_minute01:10, once a dayWebhook deliveries whose first attempt failed.
Table removal retryscheduler.physical_cleanup_drain_hour, scheduler.physical_cleanup_drain_minute01:25, once a dayAggregate and pocket tables of deleted objects whose immediate removal from the target failed.
AI advisor dispatchscheduler.ai_run_dispatch_hour, scheduler.ai_run_dispatch_minuteMinute 40 of every hourAI advisor runs that were accepted as queued but did not start at once.

Each sweep also runs once whenever the scheduler service starts.

Normal work does not wait for these sweeps: a webhook is sent, a table is removed and an advisor run is started at the moment of the request. The sweeps exist for the cases where that first attempt failed. The webhook and table removal sweeps run once a day to keep background load low, because every run visits every tenant; the cost is that a failed first attempt is retried up to a day later. The AI advisor sweep reads few rows and runs every hour, so a queued run waits at most an hour:

To retry sooner, widen the schedule. Hour * with a fixed minute runs a sweep once an hour. Hour * with minute * runs it every minute. These settings take effect when the scheduler service restarts.

Tenants excluded from scheduled work

scheduler.excluded_tenants (Scheduler group) holds tenant slugs separated by commas, for example old-pilot,sandbox-2. The scheduler does not visit a tenant named there: no scheduled refresh of its aggregates, pockets, Named Query results or KPI snapshots, no SLA or schema checks, no retention purges and no retry sweeps. The tenant itself stays active. Its users can still sign in and query, and work they start themselves still runs.

Use it for tenants that are kept but no longer need background work, such as finished pilots and test tenants. Each tenant the scheduler visits costs database connections and time on every sweep, so excluding the ones that do not need it keeps the others prompt.

Do not use it for a tenant whose data must stay fresh: its aggregates, pockets, Named Query results and KPI snapshots are no longer refreshed on schedule, and its old audit, query-log and delivery records are no longer purged.

The list is empty by default. A change takes effect when the scheduler service restarts. Each sweep's recorded outcome states how many tenants it left out.

Restart-required settings

Yellow restart-required banner with the How to restart link.

Some services load their settings only when they start. Changes to schedules, AI advisor limits, query timeouts and result limits, acceleration controls and provider options need the affected services to restart. Saving a restart-required setting shows a yellow banner listing the changed keys. A change can already apply in the web service while another service still uses its previous value.

The How to restart button explains the next steps. Save open work and close Excel before a redeploy, then follow the restart or redeploy procedure for your installation. The local development stack uses fast-deploy; installed deployments use their operations guide. After the affected services have restarted with the saved values, return here and click Mark all as applied to clear the banner.

Gateway settings apply after a gateway restart

The gateway — the service that Excel, Power BI and JDBC/SQL tools connect to — reads system settings once, when it starts. A change you save here is stored straight away and is used at once by the web application, but the gateway keeps the values it started with until it is restarted. This applies to:

These settings are marked as requiring a restart. Saving one shows it in the yellow pending-restart banner. Follow the restart or redeploy procedure for your installation, check the saved value is in force, then click Mark all as applied.

Standard SQL functions only

query.standard_sql_functions_only (Security section, default on) decides which functions a query may call. With it on, a query may use the functions the SQL parser recognises (for example UPPER, DATE_TRUNC, TO_CHAR, COALESCE, SUM, RANK), the mathematical functions, the clock functions (NOW, STATEMENT_TIMESTAMP, CLOCK_TIMESTAMP and similar), and a short approved list (AGE, MAKE_DATE and similar). A query that calls any other function is refused before it reaches the source, for every user, with a message that names the function.

Why it matters. A source-specific function is not part of the model, so the model, column security and row security cannot govern it:

When to turn it off. Only when every user of every model may run any function the source allows, and the connection's database user is limited to the model's tables. Turning it off keeps column security and row security on the columns and rows the model reads, but not on what a source-specific function reads.

Example. SELECT region, SUM(amount) FROM sales GROUP BY region runs. SELECT query_to_xml('SELECT * FROM payroll', true, true, '') FROM sales is refused: "This query calls a function that is not standard SQL (query_to_xml)".

Session settings: time zone, date format, character set

Some tools send a session function or SET command to fix the time zone, the date format or the character set before their queries. With this setting on, such a statement is refused. Set these values on the connection, not in queries. That is how other semantic layers and BI tools handle it:

In Tessallite:

Environment tab

System Configuration — read-only Environment panel.

The Environment tab shows read-only values from the host's .env file: the system DB DSN, the Fernet credential-encryption key, the JWT signing key, the system administrator's email and password, the gateway's JDBC and XMLA ports, the internal service URLs, and the CORS allow-list. Secrets are masked (***** (32 chars)) and the DSN's password is redacted, so an operator can verify what is in effect without exposing credentials.

To change any of these values, edit .env on the host and follow the restart or redeploy procedure for your installation. See Credentials and the .env file for the full procedure.

Per-key reference

The complete catalog of every system-level key, its type, default, restart flag, and description is generated from the registry at docs/guides/guides_configuration-reference.md. Regenerate after any registry change with:

python tessallite/scripts/gen_config_reference.py

Related