Skip to main content

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​

NomaUBLThe NomaUBL environments the hub runs behind one address.Servers+ New environment↻ Updated 10:12Hub · https://srv-a:8100prod/prod/ · in Libertyrunningtest/test/runningtrain/train/stoppedTESTRestartStopUpgradeAttach to NomaUBLNAMEtestSTATErunningADDRESShttps://srv-a:8100/test/INTERNAL PORT18103IN LIBERTYnot attachedSTART SETTINGSMEMORY2gJAVA OPTIONSOWN PORT8096Start it with the hubPrimary of its clusterLOG200500200010000Filter the lines…INFO SERVE Listening on port 18103INFO SCHEDULER Scheduling retention purge dailyINFO UBL PROCESSING invoices 00001One line per environmentstate, in Liberty or notStart settingsused at its next startIts log200 to 10 000 lines, filteredServers · New environmentin the page headerStart · Stop · Upgradeand attach it to NomaUBLPrimary of its clustercopies its settings (Sync)

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:

FactContent
NameThe environment's name, also its path behind the hub.
ServerThe server it runs on, with several servers.
Displayed asIts label, when it has one.
Staterunning or stopped.
AddressIts address behind the hub (https://srv-a:8100/test/).
Internal portThe port the hub reaches it on.
Direct addressIts address on its own port, when it has one.
In Libertynomaubl · 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.

Started outside the hub

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​

FieldContent
MemoryA number and m or g (2g, 512m); blank, NomaUBL's own.
Java optionsOne line, used at its next start.
Own portA port of its own beside the hub's address; blank, through the hub only.
Start it with the hubThe hub starts it when it starts itself.
Primary of its clusterIts 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.

FieldContent
NameLower-case letters, digits, - and _; it is also the address: https://srv-a:8100/name/. hub, api, static and assets are reserved.
OnThe server to create it on, with several servers.
Licence keyThe environment's NomaUBL licence key.
Memory, Own portAs in the start settings.
DatabasePostgreSQL, 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 hubBoth ticked by default.
Attach to NomaUBL once createdAccount, 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.

See also​