Ja werde ich machen. Ich habe eine kubernetes Cluster da kaufen und viel potentiellen content zu dem Thema 🙏 Zeit ist wie immer der limitierende Faktor 😅
Very nice. I think one of the interesting topics currently - is the full CI/CD process of NextJs to Hetzner. Lot's posts and videos on how expensive the Vercel is, so if you make a video on the full process of how to deploy a Nextjs to Hetzner, it will be useful for a lot of people ;)
I am actually involved in a project where we will selfhost next.js. So I'd likely be able to make a video about it without too much effort 🙏. The only not so straight forward thing is to implement the caching "interface". Though that seems easy as well. Basically just add a redis and some little code. Thanks for the idea 🙌
Hi, thx for the informative video ! This might be a stupid question, but at 1:47 why are you creating a record for a subdomain instead of the domain itself ?
Lets encrypt will verify txt records under this subdomain in order to verify the domain owner ship. With that certificates can be created. Setting up the NS to hetzner bacially means that hetzner can configure this and create the txt records when needed. This way hetzner can handle this for us.
Hi Manuel and thx for the flick! Probably, a bit stupid question, but why do you have Nginx installed on the 'testing-1' server? Isn't the Load Balancer sitting in the front enough? Or was it just for demonstration purposes (and you could have installed anything but Nginx)?
Hey! Awesome content. How about if you want to use Cloudflare in front of the LB? Is everything still the same? Also did anyone ever do load testing on the cheapest instance with just plain html/nginx service running on https?
If you use cloudflare you could let cloudflare handle the ssl termination and not use letsencrypt on the hetzner LB. One thing to watch out for is the indefinite redirects from http to https between cloudflare hetzner
Congratulations on the video Manuel. Is the Hetzner load balancer the same as AWS Elastic Load Balancing? If we are talking about e-commerce, is it possible to configure a rule so that when reaching 40% CPU usage it increases the server's performance?
It serves the same purpose, though hetzner load balancer is a bit less feature rich. It can do load balancing but also ssl termination (handling httpS with lets encrypt). If you want autoscaling on hetzner, the way to go would to host a K8s or k3s cluster behind the hetzner load balancer. And then intergrate the hcloud-cloud-controller-manager into the cluster. I am planning to set this up. Though it might take a while until I find the time to do so and make a video 🙈😅
@@Manuel_Schoebel Perfect Manuel and how would the database work with load balancing? Because when it comes to a Woocommerce store, orders can happen in the same second or in fractions of a second. i.e. the database needs to be the same on both machines
@@oschork you would setup a private network. Inside the private network you have one database (or a database cluster). But the db cluster is not managed by k3s. And there is no loadbalancer infront of it. All woocommerce instances connect to the same db(or cluster) directly inside the private network. The loadbalancer only routes public internet traffic between the woocommerce servers. So basically: Loadbalancer -> Woocommerce1 -> Woocommerce2 -> Database Depending on the traffic spikes you expect the database should normally be able to handle a lot. Reads should be cached by woocommerce anyways. But as always „it depends“ 😅 To clarify: the database is another server that only hosts the database. There is no database on the woocommerce servers.
Bitte mehr Videos zu Hetzner. Finde sowas sehr Interessant und ich lasse lieber andere Geld ausgeben, als mir das selber an zu schauen xD
Ja werde ich machen. Ich habe eine kubernetes Cluster da kaufen und viel potentiellen content zu dem Thema 🙏 Zeit ist wie immer der limitierende Faktor 😅
shush on the sever 💪
Very nice. I think one of the interesting topics currently - is the full CI/CD process of NextJs to Hetzner. Lot's posts and videos on how expensive the Vercel is, so if you make a video on the full process of how to deploy a Nextjs to Hetzner, it will be useful for a lot of people ;)
I am actually involved in a project where we will selfhost next.js. So I'd likely be able to make a video about it without too much effort 🙏. The only not so straight forward thing is to implement the caching "interface". Though that seems easy as well. Basically just add a redis and some little code.
Thanks for the idea 🙌
Look forward to that next video. Exactly what I was looking for. Thanks. Earned a sub.
Hi, thx for the informative video ! This might be a stupid question, but at 1:47 why are you creating a record for a subdomain instead of the domain itself ?
Lets encrypt will verify txt records under this subdomain in order to verify the domain owner ship. With that certificates can be created.
Setting up the NS to hetzner bacially means that hetzner can configure this and create the txt records when needed. This way hetzner can handle this for us.
Hi Manuel and thx for the flick! Probably, a bit stupid question, but why do you have Nginx installed on the 'testing-1' server? Isn't the Load Balancer sitting in the front enough? Or was it just for demonstration purposes (and you could have installed anything but Nginx)?
Yes exactly, it could have been anything like a nodejs process for example 👍
Hey! Awesome content. How about if you want to use Cloudflare in front of the LB? Is everything still the same? Also did anyone ever do load testing on the cheapest instance with just plain html/nginx service running on https?
If you use cloudflare you could let cloudflare handle the ssl termination and not use letsencrypt on the hetzner LB. One thing to watch out for is the indefinite redirects from http to https between cloudflare hetzner
Thanks
The Cloud-Init link you have provided in the Description is giving 404 not found error.
Can you please fix it?
fixed, sry 😊
Congratulations on the video Manuel. Is the Hetzner load balancer the same as AWS Elastic Load Balancing?
If we are talking about e-commerce, is it possible to configure a rule so that when reaching 40% CPU usage it increases the server's performance?
It serves the same purpose, though hetzner load balancer is a bit less feature rich. It can do load balancing but also ssl termination (handling httpS with lets encrypt).
If you want autoscaling on hetzner, the way to go would to host a K8s or k3s cluster behind the hetzner load balancer.
And then intergrate the hcloud-cloud-controller-manager into the cluster.
I am planning to set this up. Though it might take a while until I find the time to do so and make a video 🙈😅
@@Manuel_Schoebel Perfect Manuel and how would the database work with load balancing?
Because when it comes to a Woocommerce store, orders can happen in the same second or in fractions of a second.
i.e. the database needs to be the same on both machines
@@oschork you would setup a private network. Inside the private network you have one database (or a database cluster).
But the db cluster is not managed by k3s. And there is no loadbalancer infront of it. All woocommerce instances connect to the same db(or cluster) directly inside the private network.
The loadbalancer only routes public internet traffic between the woocommerce servers.
So basically:
Loadbalancer
-> Woocommerce1
-> Woocommerce2
-> Database
Depending on the traffic spikes you expect the database should normally be able to handle a lot. Reads should be cached by woocommerce anyways.
But as always „it depends“ 😅
To clarify: the database is another server that only hosts the database. There is no database on the woocommerce servers.