Better HN
topnewbestaskshowjobs
Log inSign up

CAP_NET_ADMIN

828 karma · joined Jan 7, 2022 (4y ago) · 92 submissions

Submissions

comment 1y ago · link · parent

Does anyone know a battle-tested tool that would help with (almost)online migrations of postgresql servers to other hosts? I know it can be done by manually, but I'd like to avoid that

comment 2y ago · link · parent

Why would you do 50k+ connections if they can't be active all at once either way? Unless you have 50k+ cores and IO beefy enough not to get overwhelmed due to that.

You can have as much connections as you want, but you'll have to trade it for having lower work mem numbers, which hurts performance. Traditional advice is to keep it below 500 per PostgreSQL instance (I'd say physical host).

I've ran dozens of micro services handling thousands of requests per second with a total connection limit of around 200 of which most was still unused - all without any server-side pooler.

comment 2y ago · link · parent

Beauty of CPUs - they'll chew through whatever bs code you throw at them at a reasonable speed.

comment 2y ago · link · parent

Which Caddy plugins are you using?

comment 2y ago · link · parent

I was bullied by 3 separate bullies in my school years, every time it ended when I reached some deep rage in me and hit back.

One time I've thrown the bully down the stairs, other time I've hit him with a chair and the last time it was when the bully stole my phone, started going through the photos my girlfriend sent me and commenting them inappropriately - I've smashed his face so hard, the glasses flew like 4 meters away. I was short and overweight, they've never expected the amounts of power I could generate when in rage mode.

So from my limited, anegdotal experience - it works. It also shows other people that they can stand up to the bully and the bully is not some all-powerful being that has to define their present and future.

comment 2y ago · link · parent

We are but puny agents of entropy.

comment 2y ago · link · parent

Countries always fighting the most important battles :eyeroll:

comment 2y ago · link · parent

I'm wondering if they thought about DoT, DoH and DNSCrypt.

comment 2y ago · link · parent

Bulk of those blocked requests are to Launch Darkly, Datadog and Stripe.

I'd expect commenters on tech-oriented site to understand how uBlock Origin works... or at the very least how to check the browser console instead of fearmongering.

comment 2y ago · link · parent

My company looked into paying Sourcegraph many times in the past, but they were prohibtively expensive every time we checked.

It's 49 USD per user per month for Code Search, like what the hell man? It's more than twice as expensive as Github Enterprise. Almost twice the cost of Gitlab Premium.

At some point it was 100USD per month per dev, I also remember it being "Starts from 5k USD per year", you can find some quotes for that in old submissions regarding Sourcegraph going open, closed, open and closed again.

comment 2y ago · link · parent

I'd like to point to the previous episode in this YA drama series:

"Sourcegraph is no longer open source" by me, from last year

https://news.ycombinator.com/item?id=36584656

comment 2y ago · link · parent

The truth is that if you're having issues with default overcommit configuration (namely overcommit_memory == 0 and overcommit_ratio == 50) your application probably sucks and you have to actually diagnose it and fix it.

"We run a pretty java-heavy environment, with multiple large JVMs configured per host. The problem is that the heap sizes have been getting larger, and we were running in an overcommitted situation and did not realize it. The JVMs would all start up and malloc() their large heaps, and then at some later time once enough of the heaps were actually used, the OOM killer would kick in and more or less randomly off one of our JVMs."

I know that 2007 may have been different times, but I'd argue that max heaps for all your JVMs running on a system probably shouldn't exceed around 88% of the total system memory. (percentage goes up as the total system memory goes up from 128GB -> 256GB -> 512GB)

comment 2y ago · link · parent

Around 2021 a lot of higher-up people at my company pushed for moving from our local Gitlab instance (neatly hidden in our segmented VPN network) to the global one - because that's what all of the cool guys are doing.

I've resisted this, because I know that I can sleep peacefully at night when the inevitable monthly "GitLab Critical Patch Release" email comes.

comment 2y ago · link · parent

Tech sector pretending that the regulations that worked in all the other sectors don't and won't apply to them or they will upend the human civilization.

comment 2y ago · link · parent

I've personally trialed Crowdstrike for my company (around 30 people) and found it a buggy mess, especially on non-Windows platforms - after the trial was over we decided to not use it. However this is not the case for most companies, feds, auditors or both will force you to use this BS and there's absolutely nothing you can do.

comment 2y ago · link · parent

Maybe try reading what happened during the Crowdstrike fiasco and then comment about it. Crowdstrike auto updates itself, the agent allows you to select update cadence, but this was an update to the "channel" files which auto update themselves a few times per day and you don't have any control over it.

comment 2y ago · link · parent

I think it lacks /s at the end.

comment 2y ago · link · parent

I long for a few years of peace and prosperity, so that I won't have to read military, geopolitical and pandemic "experts" everywhere I look with half of them being agents of foreign interests.

comment 2y ago · link · parent

I think the amount of alternative ACME clients is a testament to the absolute mess that certbot is.

Constant breakage unless you're using snaps on the most popular distributions. The CLI is absolutely idiotic and convoluted and the plugins do a lot of guess work without informing you, which results in some fun debugging. It's also a large pile of dependencies that take up space.

comment 2y ago · link · parent

No one wants to deal with IPv6 except for the almost religious crowd that creates an endless blogspam on how YOU should migrate to IPv6 because it's awesome!. The only interaction I had with dedicated IPv6 users was when I blocked an entire /48 from our app due to high abuse rates and got very angry email from the owner that I'm stifling the global progress.

comment 2y ago · link · parent

Please go on, reading stuff like this is always interesting for me, even if it concerns other countries.

comment 2y ago · link · parent

If you have some PostgreSQL performance issues, I'd recommend checking out PGAnalyze - they've offered a much more advanced index advisor for some time now.

My company is a paid customer since around 2020 and we are very satisfied, easily beats the Datadog's (which we use for the rest of our infra and apps) observability offering for PostgreSQL.

comment 2y ago · link · parent

I feel like interacting with the internet using C is nowadays as productive as changing your JS framework every other year.

comment 2y ago · link · parent

For not properly disclosing this to Postfix maintainers, they earned themselves a bonk on the head.

I'm sick of this trend of successful attacks being basically free marketing, while successful defences and maintainers working long hours for free to keep open source software secure never receive any praise.

comment 2y ago · link · parent

I feel like our monetary system as a way of balancing resources is failing, most of the debt nowadays doesn't really matter and doesn't represent what actually happens in the economy.

comment 2y ago · link · parent

Corporate Ransomware attacks typically use 0-days and social engineering to achieve goals. No system is perfect, but a system in place is better than not having anything in place.

Things have changed in the last 10 years. Long gone are the days of only using signature databases.

https://attackevals.mitre-engenuity.org/results/enterprise?v...

comment 2y ago · link · parent

Most of the currently used AV software contains heuristic/ML components that are able to gather and analyze various indicators of compromise. Without something like that running, you're basically tied to manual review of systems running at the moment. Making malware for such scenarios is basically making a Base64-encoded script in the language of your choice and then exploiting something(either the user or some software) to get it to execute.

I know, because I've been writing small malware toys and it got blasted by both Bitdefender and ESET.

comment 2y ago · link · parent

Good, maybe Hetzner IP ranges will become a little cleaner :)

comment 3y ago · link · parent

LLMs can be trained on all the math books in the world, starting from the easiest to the most advanced, they can regurgitate them almost perfectly, yet they won't apply the concepts in those books to their actions. I'd count the ability to learn new concepts and methods, then being able to use them as "reasoning".

comment 3y ago · link · parent

Yep, can recommend systemd in this case, really easy to apply basic hardening to services that just works.
1234