mist
2.2K posts

mist
@mistic_twt
compute | network | storage | fafoing with software | nostr | infra & backend systems

THIS IS FUCKING WILD! a humanoid robot named Edward Warchocki chased away a herd of wild boars in Warsaw.. it was shouting "GO AWAY!" in Polish as the animals fled into the forest.



The antidote for brain rot is books. The antidote for brain rot is books. The antidote for brain rot is books. The antidote for brain rot is books. The antidote for brain rot is books. The antidote for brain rot is books. The antidote for brain rot is books.


12 Kubernetes commands you should master for troubleshooting: 1. kubectl get pods - Shows all running containers in your cluster so you can see which ones are healthy or crashed 2. kubectl describe pod [name] - Gives detailed information about a specific pod including why it failed to start 3. kubectl logs [pod-name] - Displays the output messages from your application to see errors and what went wrong 4. kubectl logs [pod-name] --previous - Shows logs from a crashed container that restarted so you can see what caused the crash 5. kubectl exec -it [pod-name] -- bash - Opens a terminal inside your container to investigate files and run commands directly 6. kubectl get events --sort-by=.metadata.creationTimestamp - Lists recent cluster activities in order to trace what happened during an incident 7. kubectl top pods - Shows how much CPU and memory each pod is using to identify resource problems 8. kubectl get pods -o wide - Displays pods with extra details like which physical server they are running on 9. kubectl port-forward [pod-name] 8080:80 - Creates a tunnel to access your application directly from your laptop for testing 10. kubectl get pods --all-namespaces - Shows containers across all sections of your cluster not just the default view 11. kubectl describe node [name] - Reveals information about the physical or virtual servers running your containers 12. kubectl get pods --field-selector=status.phase=Failed - Filters to show only the pods that have crashed or failed Master these twelve commands and you will debug Kubernetes issues faster than most engineers with years of experience

⚡ Got approx ~1800 RPS on my url-shortner, don't know how accurate this is, used grafana k6 ✅️ Here's my setup: - ran test locally (server running locally) - doing a POST req to the server - after generating short_url, writing it to db, returning the result to the frontend - ran the test for about 4 minutes, while ramping up RPS: 100(30s), 1000(1m),3000(1m),5000(1m), 0(30s) ✅️How shortening happens: - using twitter-snowflake ID-gen which are 64 bits - then base62 encode them, they give 11 chars consistently - indexing on short_url field & expire_at fields TODO: adding a GET endpoint to get 302 temp-redirect & will also add redis for reads About the constraints, don't have anything in particular like, 1B urls, 100MAU etc...just building this out of curiosity. tech stack: - golang, echo, postgres any comments mr. gophers ? like, is this sort of bench-marking even mean something ? @0xlelouch_ @MarioVerbelen @arpit_bhayani






Spent the whole day reading about CPU caches from this paper. Its super dense,there’s so much packed into it that I’ll definitely need to revisit the cache section again tomorrow or I’ll forget parts of it. Skipped the RAM section for now will read it after revisiting cache

@kartikktwt @theEquinoxDev cf blogs or some other technical blogs ? I also want to read technical blogs but currently I'm not sure where to find them . Can you help ?

















