Groups in the web UI
The web UI (lf ui) shows a group as one site: its servers, their drift, an edge, and buttons that run on every server.
Each button runs an lf command. See Several servers for the commands behind it.
# start the web UI in the project folder, so it finds the group
cd my-site && lf uiThe web UI finds groups in the .landfall.json of the folder it started in and of the projects you deployed from.
Find a group
- The sidebar lists each group under Groups, with a dot for its health: green ok, yellow drift, red down.
- A site row that belongs to a group shows a group badge. It opens the group.
- The group view shows each server's release, state and replicas, the drift, the domains and how they get certificates.
- A server that left the group but still runs the site shows with an outside group badge. Sync does not change it.
Buttons and what they run
| button | where | runs |
|---|---|---|
| Deploy | group view | lf deploy -s <servers> in the project's folder |
| Restart | group view | lf restart -s <servers> <site> |
| Logs | group view, More | lf logs -s <servers> <site> -f, each line after its server |
| Roll back, Stop, Start | group view, More | the command on every server, with -s <servers> |
| Sync | group view, when the group drifts | lf sync -s <servers> <site> |
| Undo | Group runs card | lf undo <run id> -s <servers> |
| On, Off, Weight | Edge card | lf edge <site> <server>=on|off|<weight> --edge <edge> |
| Check each server | a server's Traefik settings, Certificates card | lf check -s <servers> <site> |
| Add | a server's Settings, Private networks card | lf network add <network> <server> [<other>] |
| Take out | a server's Settings, Private networks card | lf network rm <network> <server> |
| Change | a server's Settings, next to private address | lf server config <server> --private-ip <ip> |
- While Deploy runs, the output shows each server's phase: waiting, switching, switched, failed or put back.
- Each server's row in the group view links to its history.
- The Certificates card picks a DNS challenge or a load balancer.
The Deploy dialog
- The Deploy dialog picks one server or several. The first one picked is the primary. Several run
lf deploy -s <servers>. - A group project starts with its servers picked. One of them alone runs
lf deploy --partial. - Before the start, the dialog says what the deploy would refuse: a server without a DNS challenge or load balancer
(with a link to its Traefik certificates), volumes without
x-landfall: { local: true }, and autodeploy. - A group project's Pipeline shows the group as an environment's target, with a group badge that opens the group.
- Deploy and Promote run on every server of the group. Auto-deploy is off for a group: deploy from CI instead (
lf ci init).
Cards in the group view
| card | shows | when |
|---|---|---|
| Edge | each server's address, weight, requests per minute, 4xx, 5xx, state and health | with an edge in .landfall.json |
| Group runs | the runs that went to several of its servers, with each server's entry | always |
| Load | each server's CPU and memory, and the site's containers there, with their sum | always |
| Traffic | the site's requests, errors, median, p95 and bytes on each server, and for all of them | always |
| Autoscale | each service's range, its count on each server and the total | with lf autoscale rules |
With an edge, the Traffic card's first row shows what visitors sent, from the edge's access log.
On a server's own page
- A change to a group site asks where it goes: every server of the group, or only this one. This holds for Edit, Roll back, Stop, Start, Restart, Scale, Traffic split and Delete.
- Every server is the default. Stop and Delete start on only this one, since they take the site away.
- Only this one leaves the servers different, and the group shows the drift.
- A server's Traffic tab for a group site links to the whole group. Its Stats tab links each group site's containers to the group.
On the map
- A dotted line links the site's copies on the servers of the group. Selecting one lights the others.
- The edge's Traefik links to each copy it sends requests to. A server turned off there has a grey line.
- A dashed line links the copies on the other servers to a service that runs on the primary only.