Created by Alex M Stratulat and the SourceLess team.
This page explains, in plain terms, how the SourceLess Asgard chain and its public services are spread across machines, what happens when one of them stops, and what you can check for yourself. It says what is in place today, and it says plainly where something is still limited.
1. The chain does not live on one machine#
Asgard's roll has 1,313 seats. A seat is a validator: it holds a key and, when its turn comes, it seals the next block. The seats that run are spread over several independent machines in more than one place, and no single machine holds all of them.
Turns come round in a fixed order, one short slot after another. When a seat whose turn it is is not running, its slot passes with no block, and a seat whose turn comes later seals instead. So:
- When any one machine stops, the chain keeps sealing blocks, because the seats on the other machines carry on taking their turns.
- Blocks come more slowly while it is down, because that machine's turns pass empty. When it comes back, its seats pick up their turns again.
This is not only a design claim: seat machines have been down for days at a time and the chain kept sealing. Not every one of the 1,313 seats is running at any moment, and the explorer shows how many signed each block (section 5).
One limit, stated plainly: several of the machines share one site. If that whole site went offline at once, the rotation rule says the remaining seats would keep sealing, but much more slowly. That case has not been measured.
2. The public services run on three servers#
The services you use from a browser are:
- the explorer (
xplorer.xplstr.organdasgard.xplstr.org); - the public RPC that wallets and apps talk to (
rpc.xplstr.org); - the wallet (
wallet.xplstr.org); - the sign-in door (
login.xplstr.org); - the downloads (
asgard.xplstr.org/get/).
These run on three servers, in more than one data centre, and they are always tried in the same order: the first server, then the second, then the third. Each of the first two runs the same services and keeps its own full copy of the chain, which follows the live chain block by block. A copy that is already up to date means nothing has to be rebuilt or re-synced before a server can serve.
The first two servers hold no validator key. They read and serve the chain; they do not seal it. The third server is the original one, and it also runs some seats, as section 1 describes.
What does not have a standby yet:
- the public read API (
api.xplstr.org) and the operations dashboard each run on one server today; - STR.talk's message courier has a second copy on the second server, but it is a separate courier. Messages sent to it during a switch do not appear on the first server afterwards (section 3).
3. Switching between servers, stated honestly#
A health check runs every minute from one location. It asks each server for the readiness answer you can read yourself (section 6). A server that answers "not ready", because its copy of the chain is syncing, stuck or behind, is taken out of service. A server that does not answer is taken out of service too.
Visitors are then sent to the next server in the order (section 2). The switch is automatic. When the first server passes its check again, visitors go back to it.
What this means for you:
- A real failure is noticed after one or two checks. So for a minute or two after a server fails, some pages can fail to load before visitors are moved.
- A signed-in session that spans a switch may have to sign in again.
- STR.talk during a switch is served by the second server's own courier. Messages sent during that time are not on the first server after the switch back.
- The check looks at the chain copy on each server, not at every service. If the wallet, the sign-in door or the STR.talk courier fails on a server while its copy of the chain is fine, visitors are not moved automatically.
- The third server takes visitors only when the first two are both out of service.
4. Backups#
- Daily snapshots of the disks of the first two servers, kept for a week, plus a full image of the first server that a new one can be started from.
- A copy of the chain archive, kept apart from the running chain.
- The download files, kept together with the checksums they were published with.
- Every download can be checked against
/get/SHA256SUMS, so a restored download surface can be checked the same way you check one file (section 6).
5. What "seats signed" on a block means#
When a seat receives a new block, it checks the block and, if the block is good, signs it. Those signatures travel across the network as separate messages, so they arrive one by one over the first seconds after the block is sealed. The explorer's dial counts the different seats whose signature its own node has received for the newest block. Next to the count it shows the number a quorum would need: two thirds of the seats in force, plus one.
A brand-new block shows few signatures, and that is normal. The seats have not dropped. Their signatures are still on the way. On one block that was captured and measured, nineteen signatures in twenty arrived within 2.3 seconds of the seal, and the last one after 21 seconds. For a head block younger than 30 seconds, the explorer writes "still collecting" beside the count. Look again a little later and the count has usually risen.
Read the count with three things in mind:
- It is what this node has seen. It is not the whole network's count, and the explorer says "seen by this node" for that reason.
- "At least" means the node stopped counting. A node keeps no more signatures than a quorum needs, so once it has that many the explorer shows "at least" and the number.
- The count does not decide anything yet. Fewer seats run today than the quorum mark, so on most blocks the count stays below it. Blocks are sealed regardless. Whether a payment is settled is read from depth: it is settled at depth 12 once its block and eleven more have been sealed on top of each other. A low count on a block that is minutes old says how many seats were running and reachable from that node. It does not mean that block is wrong.
6. What you can check yourself#
Is the public RPC ready? Open https://rpc.xplstr.org/ready. A healthy answer looks like this:
{"ready":true,"surface":"iris","reason":"serving from height 53666","height":"53666",
"bestPeerHeight":"53666","behind":false,"stuck":false}"ready":true means the server's copy of the chain is fit to serve. height is how far that copy
has got, and bestPeerHeight is the highest block its peers have told it about. If the server is
syncing, stuck or behind, the answer is HTTP 503 with the reason in words. The address answers from
whichever server is serving at the time.
Is the chain moving? Open https://xplorer.xplstr.org. The explorer shows the head height and
how long ago the newest block was sealed. An idle chain still seals an empty block about once a
minute, and gaps of a few minutes happen when several turns in a row pass empty. The head height
should match the height in the RPC's /ready answer, give or take a block.
Is my download the published one? Download https://asgard.xplstr.org/get/SHA256SUMS into the
same folder as the file, keeping both file names unchanged, and run:
sha256sum --ignore-missing -c SHA256SUMSThe line for your file must say OK. If no line names your file, nothing was checked: the file name
must match the name in the list exactly. On Windows, compare the output of
Get-FileHash <file> -Algorithm SHA256 with that file's line in SHA256SUMS.
Read next#
- How it works: the whole system in one reading.
- Asgard mainnet: which chain is live, and what exists of it today.
- Knowing a node is alive: readiness and health, for a node you run.
- Downloads: what the download surface ships and what a checksum there is worth.