NomaUBL environments
NomaHub → NomaUBL shows the NomaUBL environments of the hub picked — each one its own process, users, licence and database, all behind the hub's address. From here an environment is created, started, stopped, restarted and upgraded, its start settings changed and its log read, and it is attached to Liberty: the NomaUBL application then lets its users pick it.
What the NomaUBL application of Liberty is, and how its users work with an environment: see NomaUBL in Liberty.
At a glance
The list
The list on the left shows one line per environment: its name (or its label), its path (/prod/), in Liberty when it is attached, a Primary tag for a cluster's primary, and its state — running or stopped. With several servers, the environments are grouped per server: this server first, then the other servers this hub administers, each with its release (see A hub's servers). A server that does not answer is said above the list.
The page header holds Servers (the hub's servers), New environment and the refresh with the time of the last reading. A link from the Overview (Log & settings, Manage) opens the page on its environment, whichever hub it belongs to.
An environment
The environment picked shows its actions in its header — Start for a stopped one; Restart and Stop for a running one; Upgrade; Attach to NomaUBL (or Change in Liberty once attached) — and its facts:
| Fact | Content |
|---|---|
| Name | The environment's name, also its path behind the hub. |
| Server | The server it runs on, with several servers. |
| Displayed as | Its label, when it has one. |
| State | running or stopped. |
| Address | Its address behind the hub (https://srv-a:8100/test/). |
| Internal port | The port the hub reaches it on. |
| Direct address | Its address on its own port, when it has one. |
| In Liberty | nomaubl · name when it is attached (first for the application's first environment), else not attached — users cannot pick it. |
Stop and Restart ask first: the environment's users are cut off. Upgrade asks too, then stops the environment, upgrades it to the hub's release — its backup taken first — and starts it again; the result and NomaUBL's log of the upgrade are shown.
An environment started with nomaubl.sh start belongs to that launcher: the page says so and offers no action on it. Stop it with nomaubl.sh stop first to hand it to the hub.
Cluster
With several servers, the Cluster section says which server runs the scheduled jobs — Runs the jobs, or Scheduled jobs run on srv-b with Run the jobs here — and, for the primary, Sync…; an environment that received a sync says where from and when. See Clusters.
Start settings
| Field | Content |
|---|---|
| Memory | A number and m or g (2g, 512m); blank, NomaUBL's own. |
| Java options | One line, used at its next start. |
| Own port | A port of its own beside the hub's address; blank, through the hub only. |
| Start it with the hub | The hub starts it when it starts itself. |
| Primary of its cluster | Its settings are copied to the environment of the same name on the other servers (Sync…). |
Discard / Save, in the page header, act on these settings; they are used at the environment's next start.
Log
The Log section reads the environment's last 200, 500, 2000 or 10000 lines; Filter the lines… keeps those that hold the text typed, and the refresh icon reads them again.
Attach an environment to NomaUBL
An environment that runs but is not attached is not offered to NomaUBL's users. Attach to NomaUBL opens, in place, the form of a new environment of the NomaUBL application, filled in from the hub: its name and its address. Its one part, NomaUBL server, asks:
- the address behind the hub — filled in;
- Liberty's account in that environment and its password;
- the acting-user secret of that environment (its
global.actingUserSecret), so that each user reads his own inbox.
Save writes the pool, binds it to the NomaUBL application and reloads Liberty; the users then pick the environment in NomaUBL. Change in Liberty reopens the same form on an attached environment. The same environments are listed in Applications' environments; how users pick one: Connecting Liberty to NomaUBL.
New environment
New environment asks what NomaUBL needs; NomaUBL then installs the environment, writes its database connection and licence, prepares its database and starts it.
| Field | Content |
|---|---|
| Name | Lower-case letters, digits, - and _; it is also the address: https://srv-a:8100/name/. hub, api, static and assets are reserved. |
| On | The server to create it on, with several servers. |
| Licence key | The environment's NomaUBL licence key. |
| Memory, Own port | As in the start settings. |
| Database | PostgreSQL, Oracle or SQL Server: Address (JDBC), Account, Password, Schema. Left empty, the environment is installed without a database, to set up in it. |
| Start it once ready · Start it with the hub | Both ticked by default. |
| Attach to NomaUBL once created | Account, Password and Acting-user secret: the environment is attached as soon as it exists. |
Create runs the installation — a few minutes —, then says the environment's address and shows What NomaUBL did. A failed creation says why; the environment's folder is kept, to fix and set up again.
Access
The page is for the Installations administrator role. Attaching an environment — Attach to NomaUBL, Change in Liberty, the In Liberty fact — needs a superuser: it writes a pool of Liberty.
Tips & best practices
- Create with Attach ticked: the environment is offered to NomaUBL's users as soon as it runs.
- Give Liberty its own account in each environment: NomaUBL's audit then tells what Liberty did from what a person did.
- Read the log before Upgrade on a busy environment: an upgrade restarts it.
- Set an own port only when needed: through the hub, every environment shares one address.