Dis · @dis
140 followers · 746 posts · Server techhub.social

If you are stuck dealing with or for modern in , let me turn you on to cloudnative-pg.io

TL;DR: An operator and CRDs for managing on that actually fulfills the promise of the operator pattern. It just, you know, *operates* the stupid thing for you. And its multi-arch.

Amusingly, I found out about it because Crunchydata insists that ARM is super hard and reserved for enterprise customers only. (They've since made contrite noises about walking that back, but no actual movement yet.)

I've been running it for about 15 minutes and so far I am blown away. And weirdly it does not appear to have tried to spy on me! That oversight aside, it comes with full support, base alarms, and a VERY nice dashboard. Handles clustering, failover, scaling, upgrades, all the things.

#crunchydata #bitnami #PostgreSQL #k8s #psql #prometheus #grafana #cloudnative #kubernetes #arm64 #homelab #TuringPi

Last updated 1 year ago

My third package is on ! Use heroku.el to as easily manage your instances, as you manage git with . Transient is the most efficient interface possible! You can tail logs, run commands like bash and python, restart and promote dynos, connect to Heroku Postgres with using built-in Emacs sql functionalityand more!

github.com/licht1stein/heroku.

#emacs #melpa #heroku #magit #psql

Last updated 1 year ago

Rajiv Harlalka · @rajivharlalka009
3 followers · 7 posts · Server fosstodon.org

Wondering if there is a way to handle both pipe to file and output at terminal at once, something like the tee command.

#postgresql #psql #query

Last updated 1 year ago

Bluszcz · @bluszcz
132 followers · 1541 posts · Server mastodon.art

@dansup @pixelfed do you need help with

#psql

Last updated 2 years ago

FErki · @ferki
37 followers · 43 posts · Server fosstodon.org

@hector_sab Oh, it gets even cooler: this functionality is part of readline, and I _think_ also libedit, so anything depending on them potentially has vi mode too! 🙌

Including other shells like , , , but also tools like and so on 👌

#bash #dash #fish #psql

Last updated 2 years ago

Matt · @mjswensen
3 followers · 13 posts · Server techhub.social

A word to the wise: pressing control-C on a runaway query with doesn’t always cancel its execution on the server. Be sure to also check :show_long or :show_running to be sure it’s really canceled. Yes, I learned this the hard way today. 🤦‍♂️

#postgres #psql

Last updated 2 years ago

Hrefna (DHC) · @hrefna
423 followers · 1600 posts · Server hachyderm.io

We saw this with the whole debacle when multiple NoSQL databases had websites that looked more like lifestyle products than actually, you know, things designed to store and retrieve data.

"We can't possibly run our infrastructure on a Legacy Database™ like we need NoSQL or it won't be !" is something that with very, very little hyperbole I have actually hear from an actual developer (1. my toaster is NoSQL, 2. not to be broccoliman but you have 10k QPS, sit down Dan).

#webscale #psql

Last updated 2 years ago

Hrefna (DHC) · @hrefna
300 followers · 850 posts · Server hachyderm.io

On the other end of the spectrum we could set up like this, with everything in separate boxes:

1. as a WAF
2. A
3. as a reverse proxy.
4. as an HTTP server.
5. for caching
6. as a queue system.
7. Vertx EventBus as a controller.
8. Verticles as processors, run on a cluster.
9. for a database and post store
10. for media storage and backups.
11. for search.
12. for coordination of Solr an Vertx.

4/

#cloudarmor #cdn #nginx #vertx #memcached #rabbitmq #psql #GCS #solr #Zookeeper

Last updated 2 years ago

φ🇦🇷 · @u03c6
26 followers · 21 posts · Server mastodon.uy

#vim #psql

Last updated 2 years ago

Hrefna (DHC) · @hrefna
260 followers · 656 posts · Server hachyderm.io

Finally: is actually a very, very good database. If I were building my own implementation I would seriously consider using it, but using it _differently_ from how mastodon uses and configures it. It does have quirks, however, and does not play particularly nicely with sidekiq and rails.

There's _miles_ of good work to be done here in the config and the schema for a contributor. There are limits, however, because of the way it is being used. No database does well if it is misused.

4/4

#psql

Last updated 2 years ago

Hrefna (DHC) · @hrefna
260 followers · 656 posts · Server hachyderm.io

It is _much_ easier if you get this right from the get go. So start early. Take a stab based on your system and settings and be ready to tweak things later.

Fourth: is at its worst on tables with lots and lots of updates and deletes that are under constant read pressure. If you start to see inexplicable or weird behavior around specific tables, that's something to look at. Especially because the schema that mastodon uses is, uh, the opposite of optimized.

3/

#psql

Last updated 2 years ago

Hrefna (DHC) · @hrefna
260 followers · 656 posts · Server hachyderm.io

A few quick thoughts about as a database and some things that new administrators running instances may not realize

First, PSQL is _incredibly_ sensitive to the number of connections you have at a given time. The more connections, the worse your system is going to perform. While it can be tempting to just up the number of maximum connections for the purposes of Sidekiq you should almost certainly not do that arbitrarily 1/

#psql #mastodon #postgres #scalingMastodon

Last updated 2 years ago

Albert Cardona · @albertcardona
697 followers · 557 posts · Server qoto.org

What can you do with a server? Say, let's look at the (vinegar fly, often referred to as fruit fly) larval central nervous system, generously hosted by the l1em.catmaid.virtualflybrain.o) or the (a marine annelid) server from the Jekely lab catmaid.jekelylab.ex.ac.uk/

First, directly interact by point-and-click: open widgets, find neurons by name or annotations, fire up a graph widget and rearrange neurons to make a neat synaptic connectivity diagram, or an adjacency matrix, or look at neuron anatomy in 3D. Most text–names, numbers–are clickable and filterable in some way, such as regular expressions.

Second, interact from other software. Head to r-catmaid natverse.org/rcatmaid/ (part of the suite by Philipp Schlegel @uni_matrix, Alex Bates and others) for an R-based solution from the Jefferis lab at the . Includes tools such as for anatomical comparisons of neurons (see paper by Marta Costa et al. 2016 sciencedirect.com/science/arti ).

If R is not your favourite, then how about : the package, again by the prolific @uni_matrix, makes it trivial, and works also within too for fancy 3D renderings and animations. An earlier, simpler version was by @csdashm github.com/ceesem/catpy , who also has examples on access from .

Third, directly from a prompt. As in, why not? is quite a straightforward language. Of course, you'll need privileged access to the server, so this one is only for insiders. Similarly privileged is from an prompt initialized via from the command line, with the entire server-side API at your disposal for queries.

Fourth, and one of my favourites: from the console in the browser itself. There are a handful of examples here github.com/catmaid/CATMAID/wik but the possibilities are huge. Key utilities are the "fetchSkeletons" macro-like javascript function github.com/catmaid/CATMAID/wik and the NeuronNameService.getInstance().getName(<skeleton_id>) function.

Notice every server has its /apis/, e.g., at l1em.catmaid.virtualflybrain.o will list all GET or REST server access points. Reach to them as you please. See the documentation: catmaid.readthedocs.io/en/stab

In short: the data is there for you to reach out to, interactively or programmatically, and any fine mixture of the two as you see fit.

#Drosophila #natverse #MRCLMB #django #javascript #VirtualFlyBrain #Platynereis #NBLAST #python #navis #blender #catpy #matlab #psql #sql #ipython #catmaid

Last updated 2 years ago