goldensw

joined 4 months ago
[–] goldensw@lemmy.dbzer0.com 1 points 1 week ago

Damn, that's crazy. I suspect this could be mitigated somewhat if you only get popular premium plugins that are open source as well. But that is likely more expensive and limits flexibility.

[–] goldensw@lemmy.dbzer0.com 1 points 1 week ago* (last edited 1 week ago) (1 children)

Yeah, it's definitely a solution I am currently researching. The main hurdle is to consider how to transfer everything. Let's say I get a VPS or a cheap, but modern dedicated server with low storage. Or perhaps even wordpress managed hosting for much better security if offloading can be properly integrated, since plugin choice and functionality might be limited. Premium plugins like WP Offload Media only work when you already have the media on your local storage. A risky solution would be offloading the media on my current server, then installing the plugin on the new server and hoping all the media syncs...

[–] goldensw@lemmy.dbzer0.com 1 points 1 week ago (1 children)

So you would definitely recommend going with OLS over nginx for my context?

[–] goldensw@lemmy.dbzer0.com 1 points 1 week ago

Thank you for the good insight! I suspect the bot problem is only going to get worse with time and the bots more complex... I will definitely need to consider this.

[–] goldensw@lemmy.dbzer0.com 1 points 1 week ago (1 children)

Given the excessive amount of RAM the new server will have wouldn't it make sense to try and load from RAM instead of from the disk? Althought nvme gen4 ssds are blazingly fast as well. Also see the reply I wrote to @dan@upvote.au for more context I forgot to write in my initial post.

[–] goldensw@lemmy.dbzer0.com 2 points 1 week ago (5 children)

It's 200-250k monthly users... Yeah, the server is overkill. Unfortunately, the situation is a bit more tricky, I forgot to mention the storage constraint in my initial post. Look at the reply I wrote to @dan@upvote.au to see what I mean.

[–] goldensw@lemmy.dbzer0.com 2 points 1 week ago* (last edited 1 week ago) (1 children)

Sorry for the late reply. We are using an older Hetzner with i7 6700, 64 gb and 500 GB SATA SSD. It's quite ancient by modern standards and it is starting to show its age in some usecases. I am well aware the new machine is way too powerful for our current context but unfortunately the site is very old so it amassed a huge library of media of over 300gb over many years. If we plan to store it locally, we could probably compress it aggresively to free a few dozen GB, but to be fair it would only delay the inevitable upgrade. Clearly, an alternative would be some sort of media offloading with premium WordPress plugins to ensure robustness and regular updates, but that introduces complexity, so it's something I will need to discuss with our developer since it could create a situation "it's not my fault offloading caused these issues, since I initially recommended local storage for reliability".

But let's say we do choose this very powerful server, you mentioned loading from the disk, but wouldn't loading from RAM (given the excessive amount of RAM for this usecase) be preferable whenever available?

[–] goldensw@lemmy.dbzer0.com 1 points 1 week ago

Sorry for the late reply and thank you for offerint these options to me. The articles were also interesting. :)

 

I was hoping you guys could help me with a bit of a more out-of-the-ordinary situation. My older father, who has very little technical knowledge, is the owner of a local news outlet and is in the process of modernizing the whole website and its infrastructure. He is in talks with a local developer (just one guy) who has been maintaining everything for the past 5 years to transfer everything to a new dedicated server and make some much-needed software and design changes. He is currently running everything on an older Hetzner dedicated server, which we decided to upgrade very soon to the Hetzner AX102 (Ryzen 9 7950X3D, 128 GB DDR5 ECC, 2 × 1.92 TB NVMe SSD Datacenter Edition, and a 1 Gbit/s port with unlimited bandwidth). He has asked me to try to help him achieve a favorable outcome because he is aware that, due to his lack of technical knowledge, he might be taken advantage of or, at the very least, the developer will only do the bare minimum because no one will check his work, even though this process is not exactly cheap, at least by our country’s standards.

I only possess a basic understanding of most of what hosting such a site optimally on a dedicated server entails, as this is not my area of expertise, but I am willing to learn in order to help my father, at least to the point where we don’t get scammed and we are able to take full advantage of the new hardware to make the site load instantly.

More context:

  • The site is based on WordPress, and we plan to keep it that way when we make the transfer. The developer told me he would strongly prefer running AlmaLinux 10 with NGINX for our particular context and will likely use Bricks as a page builder. I would prefer not to change these, since it would likely create unneeded friction with him.
  • There are about 150k–250k average monthly users according to Google Analytics, depending on the time of year and different events, most of them from our area.
  • About 80% of readers are using smartphones.
  • There are a few writers who publish multiple articles daily (20–25 in a 24-hour window). The articles always contain at least text and some images. There’s a strong dependency on Facebook, as most of the readers access those articles from our Facebook page. This might be relevant for caching strategies and other settings.

For now, as a caching strategy for optimal speed, Gemini analyzed my requirements and recommended a tiered “in-memory” caching strategy to handle high traffic without a CDN. Could you validate whether these specific recommendations are optimal, since I am highly skeptical of AIs?

Page Cache: it suggests mapping Nginx FastCGI Cache directly to RAM (tmpfs). It recommends using ngx_cache_purge with the Nginx Helper plugin to instantly invalidate only the Homepage and Categories upon publishing. It also advises stripping tracking parameters (e.g., fbclid) to prevent cache fragmentation.

  1. Object Cache: It proposes using Valkey (Server-side) paired with the Redis Object Cache plugin. The specific advice is to connect them via Unix Socket (instead of TCP) for the lowest possible latency.
  2. PHP Layer: It recommends PHP 8.5 with OPcache and JIT (Tracing mode) enabled, optimized to keep the runtime entirely in memory.

**I’d appreciate any thoughts or advice you might have on the overall situation, not just the caching side of things. The caching is just what I managed to study so far since the AI insisted it was particular important for this setup. **😊

[–] goldensw@lemmy.dbzer0.com 2 points 2 weeks ago

An interesting read. I am glad I posted here. :)

[–] goldensw@lemmy.dbzer0.com 2 points 2 weeks ago* (last edited 2 weeks ago)

True, I've come across some free plugins that offer better functionality than paid versions. The issue is how often will the dev update it and how long will development continue. It might be risky to depend longterm on something that is free but has 5k downloads vs something that is paid with 50k downloads and is getting constant updates. Of course, if you pirate paid plugins it's arguably even worse with the updates... so I guess pirating plugins is not really the best of ideas.

[–] goldensw@lemmy.dbzer0.com 4 points 2 weeks ago (1 children)

Yeah, I am starting to come to the same conclusion. Keeping the plugin up to date seems like the biggest issue even IF I do manage to find an initial reliable source.

[–] goldensw@lemmy.dbzer0.com 1 points 2 weeks ago

That seems quite legit :). Thank you! Will check it out

24
submitted 2 weeks ago* (last edited 2 weeks ago) by goldensw@lemmy.dbzer0.com to c/piracy@lemmy.dbzer0.com
 

Is there any way to pirate premium WordPress plugins and minimizing the chance of getting malware? Meaning perhaps there are certain sources that are known to provide malware free content and generally have a good reputation. I know piracy will always involve risks but it doesn't hurt to ask people with first-hand experience. I am even willing to pay but there's no way I will afford plugins that cost hundreds of dollars a year anytime soon.

view more: next ›