Hacker News new | past | comments | ask | show | jobs | submit | usrme's comments login

Love the way you made that Nebraska reference!


For people as puzzled as me by the Nebraska reference, I think it's referring to this well known XKCD post:

https://xkcd.com/2347/


This is probably out of left field, but what is the benefit of having a naming scheme for nodes without any delimiters? Reading at a glance and not knowing the region name convention of a given provider (i.e. Hetzner), I'm at a loss to quickly decipher the "<region><zone><environment><role><number>" to "euc1pmgr1". I feel like I'm missing something because having delimiters would make all sorts of automated parsing much easier.


Quicker to type and scan! Though I admit this is preference, delimiters would work fine too.

Parsing works the same but is based on a simple regex rather than splitting on a hyphen.

euc=eu central; 1=zone/dc; p=production; wkr=worker; 1=node id


Thanks for getting back to me! Now that you've written it out, it's plainly obvious, but for me the readability and flexibility of delimiters beats the speed of typing and scanning. Many a times I've been grateful that I added delimiters because then I was no longer be hamstrung by any potential changes to the length of any particular segment within the name.


You can more easily double-click-select the full hostname when there are no delimiters.


Yea, not putting in delimiter and then us having to change our format has bitten me so many times. Delimiter or bust.


You can treat the numeric parts as self-delimiting ... that leaves only the assumption that "environment" is a single letter.


Do you have a write-up about this that you have to share, even if it's someone else's? I'd be curious to try this out.


I've done this but on EC2. What would you like to know? Installing K3s on a single node is trivial and at that point you have a fully functional K8s cluster and API.

I have an infrastructure layer that I apply to all clusters that includes things like cert-manager, an ingress controller and associated secrets. This is all cluster-independent stuff. Then some cluster-dependent stuff like storage controllers etc. I use flux to keep this stuff under version control and automatically reconciled.

From there you just deploy your app with standard manifests or however you want to do it (helm, kubectl, flux, whatever).

It all works wonderfully. The one downside is all the various controllers do eat up a fair amount of CPU cycles and memory. But it's not too bad.


i was actually playing with hetzner and k3s over the weekend and found this https://github.com/vitobotta/hetzner-k3s to be super useful.


That's really unexpected! I'd default to the assumption that it would "just work" if all the dependencies are already met.


I've also had a good experience using the 'perf'[^1] tools for when I don't want to install 'hyperfine'. Shameless plug for a small blog post about it as I don't think it is that well known: https://usrme.xyz/tils/perf-is-more-robust-for-repeated-timi....

---

[^1]: https://www.mankier.com/1/perf


I too have scripted time(1) in a loop badly. perf stat is more likely to be already installed than hyperfine. Thank you for sharing!


There's also 'poop', which is a nice middle-ground between 'hyperfine' and 'perf'. https://github.com/andrewrk/poop


worth mentioning that it's linux-only


This sounds interesting! Would you be willing to share an example?


just the most recent one:

1. naiive prompt - gives dogshit answer: "how can I implement authorization for each microservice request if I am using AWS EKS and Linkerd as service mesh?"

- the answer to the first naiive prompt was mere 148 words. Similar to what you find in first results of gogel search.

2. meta-prompt - just start with "Write LLM prompt to ask AI about...". My meta prompt was "Write LLM prompt to ask AI about how can I implement authorization for each microservice request if I am using AWS EKS and Linkerd as service mesh"

- it gives the following prompt: "I'm using AWS EKS for container orchestration and Linkerd as my service mesh. How can I implement robust authorization for each microservice request in this architecture? Please provide an overview of recommended approaches, considering factors like scalability, security best practices, and integration with AWS services. Include any specific tools or patterns that work well in this ecosystem."

- the answer for the second prompt is much better at 428 words and I didn't have to think much. It took me 27 words of meta-prompt to get the 57 word real-prompt and the final answer is much better


Thank you so much for taking the time to give a concrete example! It really elucidated the process for me and I'll definitely do some A/B testing of my own to try it out.


Generate a system prompt for an AI model which will do ....

You put your requirements, take that prompt into a new chat window.


I was looking for a concrete example and not a reiteration of what was originally said.


Did you try it, why didn't it work for you


Just got hit with this. Even running Vim on an M3 Pro was a multi-second experience...


Does anyone know how far along the eBPF implementation for Windows actually is? In the sense that it could start feasibly replacing existing kernel drivers.



I like the spirit of the second half to demonstrate what the team is up to, but I too wondered about potentional one-upsmanship problems. I'll definitely start following this to learn more though.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: