Top Tweets for #cloudnativepg
CloudNativePGで作る冗長構成に、そのままPGroongaを載せられるかを試しました。primary停止→replica自動昇格後も全文検索が動いています。
#Kubernetes #CloudNativePG #PGroonga
Kubernetes Operatorを使うとPostgreSQL + PGroongaが楽に運用できる!かも
https://t.co/2GJq2DA5tK
Day 68 building in public ⏩
Took a day off yesterday, but today I finally finished the migration to CloudNativePG.
This thing rocks! Now I'm managing my database fully declaratively and have automated backups and WAL archiving for point-in-time recovery (PITR). For redundancy I'm using a completely different storage provider.
With that my infra refactoring is officially complete and starting tomorrow I'll be back to focusing 100% on building my apps.
I also set a new 5K PB in a race today and officially joined the 23" club 😎
Day 67 building in public ⏩
Casual Friday.
The agent read the CloudNativePG documentation for me, discovered that it supports full data import from another database instance during bootstrap, set up base backups and WAL archiving, configured automatic uploads to S3-compatible storage, and prepared all the GitOps scripts.
So the actual migration became a breeze.
Life is good! 😄
Day 67 building in public ⏩
Casual Friday.
The agent read the CloudNativePG documentation for me, discovered that it supports full data import from another database instance during bootstrap, set up base backups and WAL archiving, configured automatic uploads to S3-compatible storage, and prepared all the GitOps scripts.
So the actual migration became a breeze.
Life is good! 😄
Day 66 building in public ⏩
The last few days were very busy, so I needed to slow down a bit.
Today's update: I decided to migrate my database once again (hopefully for the last time) after discovering what seems to be a better way to manage it - via a Kubernetes operator, specifically CloudNativePG.
The main reason is its excellent backup and restore capabilities. It handles the entire database lifecycle on autopilot and allows point-in-time recovery with minimal effort.
Backups shouldn't just be created - they should be easy to restore as well.
Today I also spent some time tinkering with Shelly circuitry and automating a few routines at home. It was genuinely fun and a pleasure to work with them.
Day 66 building in public ⏩
The last few days were very busy, so I needed to slow down a bit.
Today's update: I decided to migrate my database once again (hopefully for the last time) after discovering what seems to be a better way to manage it - via a Kubernetes operator, specifically CloudNativePG.
The main reason is its excellent backup and restore capabilities. It handles the entire database lifecycle on autopilot and allows point-in-time recovery with minimal effort.
Backups shouldn't just be created - they should be easy to restore as well.
Today I also spent some time tinkering with Shelly circuitry and automating a few routines at home. It was genuinely fun and a pleasure to work with them.
Day 65 building in public ⏩
✅ I'm done with the new infrastructure 🥳
I achieved my goal and now have my critical infrastructure running on a new cloud server, while the non-critical services live on a separate, less powerful one.
I had to migrate live apps and a live database, and managed to pull it off with zero downtime. My apps now load faster, and the new setup is much more flexible. I also did a major refactor of the GitOps codebase, improving its structure and organization.
The new setup is future-proof and will be a big enabler going forward.
I had so much fun doing this migration and tinkering with technology - Kubernetes, networking, security... self-hosting FTW! (and yes, I'm that crazy indie hacker, who hosts apps with 5 users on a Kubernetes cluster 🤣)
BTW, this week was a tough one limits-wise. Can't wait for tomorrow and a fresh batch of limits 😅

I just completed one of the most challenging PostgreSQL recoveries I have handled.
The cluster was completely broken with no active primary. It was a CloudNativePG (CNPG) cluster that was originally designed to run with three nodes: node-1 as primary and node-2 and node-3 as replicas.
The situation when I started troubleshooting was the following:
node-1 and node-3 were completely wiped
node-2 was missing its WAL PVC
A split-brain scenario had occurred earlier, which I only discovered later during log analysis
The one piece of good news was that the volume containing the WAL directory still existed, but the corresponding PV and PVC objects were missing.
Step 1: Restoring the WAL PVC
I first recreated the PVC and bound it back to the node-2 pod. Once the pod started, I began reviewing PostgreSQL logs and quickly noticed that the WAL contents did not match the pgdata state, which indicated a split-brain condition.
Step 2: Investigating the Data
To investigate further, I created a debug pod and mounted both volumes:
the pgdata PVC
the WAL PVC
After inspecting the data directories, I determined that the safest path forward was to reset the WAL state.
Before doing that, I took a precautionary step and downloaded a copy of the database locally to ensure there was a fallback if anything went wrong.
I then performed a pg_wal reset, which resolved the WAL mismatch.
Step 3: Promoting the Remaining Node
At this point the node was still configured as a replica, so PostgreSQL remained stuck waiting for a primary that no longer existed.
I manually adjusted the configuration and forced the node to become primary.
Step 4: CNPG Operator Reconciliation Failure
However, this introduced another problem. Because I had made several manual changes inside the pod, the CNPG operator could no longer reconcile the cluster state. The operator detected significant drift between the actual pod state and the expected state defined in the CR.
After about two more hours of debugging, I identified the mismatch and patched the Cluster CR status object to reflect the new state. Once that was corrected, the operator resumed reconciliation.
The result:
The cluster successfully rebuilt itself back to three nodes
Replication resumed normally
The cluster returned to a healthy state
Why I Did Not Restore From Backup
Technically, I could have restored the entire cluster from backup in under 10 seconds.
However, this was a development cluster, so I intentionally chose the more complex path. Working through the recovery manually provided a much deeper understanding of:
WAL consistency issues
split-brain recovery
CNPG operator reconciliation mechanics
PostgreSQL promotion and recovery behavior
It ended up being an extremely valuable troubleshooting exercise.
@dev_ago @rubyist19 @CloudNativePg Creo que depnde mucho de la integridad de la data, consitencia, y el uso.
Production world, o por ejemplo lo que he manejado a nivel profesional el cuando tenemos aplicaciones donde se modifiquen muchas cosas a gran escala, mongo ayuda mucho ahi. Ademas de escalabilidad horizont
@JessiePanda @rubyist19 @CloudNativePg PSQL es uno de los motores de Base de datos más rápido que existen actualmente.
Creo que toca hacer Benchmark 👀👀👀
@dev_ago @CloudNativePg Performa mejor mongo, pero es más barato casi siempre usar las de pg, por que los únicos que manejan bien mongo son los psicópatas
Dev, han utilizado las columnas Jsonb de PostgreSQL? Creen que es mejor que MongoDB?
Desde el punto de administración hace muchas cosas más fáciles y sin tomar en consideración qué tan lindo funciona el @CloudNativePg en Kubernetes.
PostgreSQL JSONb columns do No-SQL better than NoSQL does NoSQL.
Pierrick vous propose une nouvelle série d'articles dédiée à #cloudnativepg, qui commence tranquillement en rappelant ce qu'est la conteneurisation et comment installer l'opérateur => https://t.co/d6xKa6SiLC
#SGBD #PostgreSQL #DBA
#kubernetes
#opensource #logicielsLibres

Kyverno is an open-source policy engine for Kubernetes. You can find my article about adding a label to CloudNativePG cluster with Kyverno here: https://t.co/cZ9Y2o2ali
#Kyverno #Kubernetes #PostgreSQL #CloudNativePG
Last Seen Hashtags on Sotwe
Most Popular Users

Elon Musk 
@elonmusk
239.7M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers











