Get more out of croit: shortcuts, search and safety nets

Get more out of croit: shortcuts, search and safety nets

· Johannes Dittrich

croit can do more than meets the eye. Shortcuts that save you a dozen clicks, a search box that understands queries, charts you can take apart, and checks that keep a routine reboot from turning into an outage. Here are the tricks we at croit use every day.

One note before we start: on a Mac, read Ctrl as Cmd and Alt as Option.

Keyboard shortcuts

Most actions in croit have a keyboard shortcut, and you don't have to learn a single one by heart. Hold Ctrl or Alt for a second and croit shows the shortcuts that work on the page you're on.

The shortcut overlay for two selected servers

The one worth remembering is Ctrl+K. It opens quick search: type a few letters of a page name and press Enter to jump there.

Quick search finding the Buckets page

Open it without typing anything and it lists the pages you visited last. Handy when you're hopping between the same three pages all afternoon.

Tables

Servers, disks, pools, services, logs: nearly every list in croit is the same table under the hood, and it refreshes on its own. Learn it once and you know them all.

Selecting works like in a file manager. Ctrl+click adds a row, Shift+click selects a range, and Ctrl+A takes everything. Most buttons above the table then act on the whole selection, so restarting five services is a single click. If your fingers live in Vim, J and K move the selection, too.

Two more things are easy to miss. Ctrl+click a second column header and the table sorts by both columns. And Columns hides more than it shows: on the server list you'll find Uptime, Running Image and RAM Usage in there.

The search box speaks a query language

Typing a hostname works, but the search box can do a lot more. Compare columns with operators such as ==, >=, contains or regex, and combine conditions with and, or and not:

hostname regex ceph-[12] and "running osds" >= 4

A search query filtering the server list

You don't need to memorize the syntax either. The search box suggests columns and operators as you type, and its info button lists everything it understands. Best part: the query is stored in the URL, so a view you need every week is just a bookmark away.

Charts

Every chart has buttons in its corner to download it as PNG, show the raw values as a table, or go fullscreen. The chart itself hides two more tricks.

Drag across a chart to zoom in on a spike. All other charts on the page zoom along with it, so you can see what latency, IOPS and recovery did at the same moment. The arrows next to the time range take you back.

Dragging across a chart to zoom in

Too many lines in one chart? Click a legend entry to show only that line. Click it again and the others come back.

Terminal

croit has a terminal built in, for the management node and for every server. Press Alt+T to open it. It stays open while you click through the UI, so you can watch ceph -s while changing things on another page.

Each tab connects to a server of its own, and clicking the tab's title switches it to another one. Holding Alt shows the tab shortcuts, as always:

Terminal tabs with the shortcut overlay

Copying text out of a terminal usually drags along a trail of blanks. Ctrl+Shift+C leaves them behind. And if you need a file on a server, or off it, sz and rz do the job. Our post on the maintenance terminal shows how.

Small helpers

A few smaller ones to round it off. The S3 bucket browser copies and moves objects with Ctrl+C, Ctrl+X and Ctrl+V, just like files on your desktop. The CephFS explorer under File Storage sets quotas and snapshots on any directory without a single command. If you prefer GB over GiB, click your user name in the bottom left.

And if something looks off, the bug button in the bottom right takes a screenshot for you. Draw on it, black out anything private, and send it straight to us.

Safety nets built in

Some Ceph operations punish a single wrong step. croit runs the checks an experienced admin would run, so nobody has to remember them at 3 a.m.

Rolling reboots. Select a few servers, click Reboot and pick Rolling. croit reboots one server at a time. Before each one, it sets noout so Ceph doesn't start shuffling data around, and asks Ceph whether the server's OSDs can stop without taking data offline.

Then it waits until the server is back, the cluster is healthy and your HA groups have quorum again, so virtual IPs stay up. Only then is the next server's turn. Services get the same treatment under Restart, and stopping or destroying an OSD runs the same check first.

The task advisor. Ceph tells you when something is broken. The task advisor also tells you when something is about to bite you: an even number of MONs, a min_size that puts your data at risk, a metadata pool on spinning disks, two default gateways, or a management node without a backup. Each finding comes with a link to the fix. A dot next to Advisor in the menu means it found something.

Got a trick of your own, or a shortcut you're missing? Let us know.

24/7 premium support

Running croit in production? Our team is available around the clock to help with upgrades, capacity planning and incidents.