Once You See It …
Why Is It Slow?
We use multiple different server infrastructures. The paying clients run on cloud infrastructure, development and my pet projects run on internal infrastructure.
The internal infrastructure consists of a 2GB link to the outside. This connects to a dedicated PfSense box.
PfSense provides firewall, VPN, and load balancing. The box itself might need a bit more memory, but nothing horrible is happening with it.
PfSense uses HAProxy for load balancing. It does SSL offload to allow easy certificate maintenance as seen from the outside.
For web connections, it looks for one of two nginx process running on one of the servers.
Those nginx services run inside a container and connect to a dedicated shared network. They forward traffic to the correct container.
That container is running WordPress. It is configured on the correct network and connects to a MariaDB server on the external network.
That database is running on NVMe and has zero performance issues when tested.
The base code is stored in the docker container, the plugins, and media are stored in a mounted volume.
So, you request a page from The Vine of Liberty. That hits the firewall, which forwards it to a web server (nginx). The web server forwards the request to an Apache web server running in a container with WordPress installed. PHP within WordPress is configured to connect to the database for long term storage.
Media that is needed is loaded by Apache from the mounted volume of a Ceph distributed file system.
PHP that is on the mounted volume is loaded and cached.
This is running much too slow. I’ve tested so many parts of this, and I can not discover what the bottleneck is.
JavaScript Sucks
Over the years, I’ve gotten better and better at JavaScript. This week and last, I transitioned to TypeScript.
This is driving me bonkers. I know how to write a module. I know how to load a module and have it do something. I can see how other packages have exposed global items. What the heck do I need to do to make this work!!!!
Just another learning curve. Sometimes I get tired.
jQuery is so yesterday
For the new site I’m working on, I’ve decided that I will only support modern browsers on the internal side. This means I’m writing everything in pure JavaScript/TypeScript. It is working, but I still use jQuery syntax when I should be using JavaScript syntax.
And I miss my Makefiles.
Snope and Ocean State Tactical
Were both relisted yesterday. This makes 13 times they have been distributed for conference.
Mark Smith says this is good. Points out that the Dobbs case was relisted 12 times before cert was granted. This lead to the overturning of Roe v. Wade.
I’m tired of waiting for the Court to do the right thing.
They’re Suing John Roberts!
Yeah, the same way we sued Bruen, and they are suing Donald J. Trump.
They are suing these people in their official capacity.
In other words, they are suing the head of an entity. Roberts is being sued for some entity he heads, other than SCOTUS.
What can you do with a .357 magnum?
Turns out that with that old lever gun, I can vaporize a skull. My bone person is upset with me. I’ve learned to take headshots at most smaller animals to protect the pelt and meat. It was a short range shot, less than 30 yards.
It was a Hornady bullet with the plastic tip. I’m too lazy to go dig up my reloading log.
Question of the Week
When did you first suspect that the News might be lying to you?
When did you first find proof that the News was lying to you, in mass?
Leave a Reply