Hacker Newsnew | past | comments | ask | show | jobs | submit | markonen's commentslogin

Crash is the best-case outcome for a browser bit flip. Here's bitsquatting:

https://ripe92.ripe.net/programme/meeting-plan/sessions/112/...


If you see photos/videos of Hetzner datacenters, their servers are essentially plain, low-end motherboards (1G network, few slots) sitting on shelves (don't mean that as derogatory, it's an efficient design). What it does mean is that their per-server costs are absolutely dominated by the very components that are exploding in cost right now: RAM, SSDs and (to a lesser extent) CPUs.


There’s nothing hard about it if you can run pre-terminated patches. Which you typically can since the connectors are so small.


So you're saying users could buy stuff like this? "25m (82ft) Fiber Patch Cable, 1 Fiber, SC APC Simplex to SC APC Simplex, Single Mode (OS2), Riser (OFNR), 2.0mm, Tight-Buffered, Yellow", https://www.fs.com/eu-en/products/282133.html?attribute=1031...

Heck, I don't even know what I should buy for 10G SFP+ ports and a distance of say 30 meters. Guess, I'm back to CAT6 :-)


> Guess, I'm back to CAT6 :-)

If you learned what you need for 10GbT you can learn what you need for 10GbLR. Which is:

LC connector, PC or UPC, duplex, OS1 or OS2, and SFP+ modules saying "LR".

Any of the following is wrong: SC, FC, LSH, E2000, ST, APC, simplex, OM[1-5], "SR" or "ER" SFPs.

And that's short enough.


LC connectors are smaller and what the actual SFP+ modules typically have. If you want to run a link with just one fiber, you need BiDi optics.

FS does custom multi-fiber cable assemblies too (beyond the duplex patches which is basically the standard), and they can also include pull eyes on them if that’d be helpful.

Single mode is a good choice, common wisdom used to be multimode for short runs but the single mode stuff is not much more expensive and the standard 10km optics will likely brute force the signal over any mistakes like cable kinks or dirt on the connectors.


What a blast from the past. I added that!


Oh really? Hah, you are the reason I've known about Swatch Internet Time for the last 20+ years.

I read the PHP docs and wondered "What in the heck is that?" before Googling it.


I love seeing stuff like this on HN, that's really cool.


Apparently they've deprecated Postgres support and now only recommend sqlite as the storage backend. I have nothing against sqlite but to me this looks like Tailscale actively signaling what they think the expected use of headscale is.


https://headscale.net/stable/about/faq/#scaling-how-many-cli...

> Scaling / How many clients does Headscale support? > It depends. As often stated, Headscale is not enterprise software and our focus is homelabbers and self-hosters. Of course, we do not prevent people from using it in a commercial/professional setting and often get questions about scaling. > Please note that when Headscale is developed, performance is not part of the consideration as the main audience is considered to be users with a modest amount of devices. We focus on correctness and feature parity with Tailscale SaaS over time. [...] > Headscale calculates a map of all nodes that need to talk to each other, creating this "world map" requires a lot of CPU time. When an event that requires changes to this map happens, the whole "world" is recalculated, and a new "world map" is created for every node in the network. [...] > Headscale will start to struggle when [there are] e.g. many nodes with frequent changes will cause the resource usage to remain constantly high. In the worst case scenario, the queue of nodes waiting for their map will grow to a point where Headscale never will be able to catch up, and nodes will never learn about the current state of the world.

I find that quite interesting and it is one of the reasons I've not really considered trying out Headscale myself.


Why? Makes perfect sense to me. Designing a product with a specific use case in mind is good. When you've got the limited resources of am open source volunteer project, trying to solve every problem is a recipe for burnout. If it can even be done.


> Headscale is not enterprise software

I mean this is a great advertisement in and of itself. Something being considered "enterprise software" means it will have 90% more features than needed, the code will be a combination of dozens of different mid-level devs new perfect abstractions and will only test code paths through all those features that the original enterprise valued. I.E. it is great if you work in an enterprise as it will generate a lot of work with an easy scapegoat.


I dont understand what these two have to do with anything? The db-use is almost trivial, and SQLite can be embedded. Why would we want wasted effort and configuration complexity on supporting postgres?


[flagged]


With that kind of logic you wouldn't need headscale and would just ask your favorite LLM to write a similar tool for your with your own requirements and nothing else.


No, not really necessary to extrapolate the logic any further. You have deemed a very specific and focused task as "wasted effort." So the logic leads to putting in the effort you do not find "wasteful" and outsource the remainder to the LLM do this very specific thing.


Tailscale itself only uses sqlite[1], so I’m not sure if that really holds in this case.

[1]: https://tailscale.com/blog/database-for-2022


TIL! My problem with them requiring sqlite was that I assumed it would make a high availability setup either hard or impossible. Maybe that's not true, but definitely off the beaten path for headscale.


Headscale only supports a single control node.


I suppose there's always the old fashioned way of using drbd with heartbeat


Yeah, Headscale people don't hide that it's a toy. I didn't get a homelab full of datacentre-grade equipment because I want to use toy, nonscaling solutions with vastly incomplete feature sets, but for the exact opposite reason.

On a different note; the HN obsession with SQLite these days is getting a bit tiresome.


Just had my first uncorrectable memory read error on our servers in 10 years or so today (in Sacramento). I'd like to think it's related because the alternative (buying new DIMMs) is too horrifying to contemplate


Last major storm I saw a significant number of single bit errors on my main server - never happened again, still using the same ram. So +1 anecdote


Is this detectable without some parity checks?


No, but ECC ram gives you _hardware_ parity checks, which is much faster and doesn’t require you to change your code.


In the performance tests they said they used "consensus among 64 samples" and "re-ranking 1000 samples with a learned scoring function" for the best results.

If they did something similar for these human evaluations, rather than just use the single sample, you could see how that would be horrible for personal writing.


I don’t understand how that is generalizable. I’m not going to be able to train a scoring function for any arbitrary task I need to do. In many cases the problem of ranking is at least as hard as generating a response in the first place.


From the PostgreSQL 17 Beta 1 announcement:

> PostgreSQL 17 adds a new connection parameter, sslnegotiation, which allows PostgreSQL to perform direct TLS handshakes when using ALPN, eliminating a network roundtrip. PostgreSQL is registered as postgresql in the ALPN directory.

I'm looking forward to being able to offload PostgreSQL TLS to a standard (non-pg-specific) proxy.


They’re probably amplifiers rather than repeaters. Optical amplifiers don’t need to decode the signal to work. Here’s Wikipedia on erbium-doped fiber amplifiers:

> A relatively high-powered beam of light is mixed with the input signal using a wavelength selective coupler (WSC). The input signal and the excitation light must be at significantly different wavelengths. The mixed light is guided into a section of fiber with erbium ions included in the core. This high-powered light beam excites the erbium ions to their higher-energy state. When the photons belonging to the signal at a different wavelength from the pump light meet the excited erbium ions, the erbium ions give up some of their energy to the signal and return to their lower-energy state.

https://en.wikipedia.org/wiki/Optical_amplifier


I moved away from Cloudflare—to self hosting our network infrastructure—because, while this didn’t happen to us, I was very aware that it could. We had a great deal on Enterprise for a couple of years, but zero guarantees that it would last (and some indications that it wouldn’t). I wanted to stop praying that they wouldn’t alter the deal.


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

Search: