Configuring Load Balancing with Nginx on Laravel Forge

  Рет қаралды 13,367

Laravel

Laravel

Күн бұрын

Пікірлер: 35
@ArislanHaikal
@ArislanHaikal 2 жыл бұрын
Please discuss about scaling laravel, more precisely to infrastructure. How laravel has many instances, like 2 app instances, 2 databases (main, slave), 2 queue/redis (main, slave). I'm still very new to this. Thank you
@Justinkol
@Justinkol 2 жыл бұрын
Fantastic video. Would love to hear more about scaling laravel with main/secondary or read/write db instances. In this one you mention forge load balancers have RR, Least connections, and IP Hash (sticky) choices when choosing which application server to route the request to. Could these be improved/expanded to use sticky cookie instead of just an ip_hash? Ideally, I'd like requests within a given session to route to the same app server, but not be bound to a given app server by IP address. Thanks!
@hyiping5926
@hyiping5926 Жыл бұрын
Would be nice with a video for Database server and Cache server, Worker Server and Web Sever... or even how to create your own CDN on a subdomain
@johnRivs
@johnRivs 2 жыл бұрын
Any special considerations when using load balancing + Octane?
@smartlinks6483
@smartlinks6483 2 жыл бұрын
good video, but is there a single database or what do you do in that case, I am really curious.
@w333-c1w
@w333-c1w 2 жыл бұрын
Do you know the answer now? Is the database on a different server?
@TioJobs
@TioJobs 2 жыл бұрын
I had to put this video in the "O QUE ROLOU ESSA SEMANA?" ("WHAT HAPPENED THIS WEEK?" in Portuguese) on the TIO JOBS channel. Strong hug! good content!
@abdonajjar2981
@abdonajjar2981 2 жыл бұрын
Wonderful but I do have question , How can I shear the storage file and sessions between servers while we are using the load balancing method, thank you mr Said Hope you will be always Said :)
@Elelalem
@Elelalem 2 жыл бұрын
Thanks for the explanation! I would love to see a video for redis on forge :-)
@khafi22
@khafi22 2 жыл бұрын
Thank you Said for the explanation. Will databases of both servers synchronize or there is another configuration to do?
@ruslansteiger
@ruslansteiger 2 жыл бұрын
I use a separate server for the db
@nikolasvetozarevic5344
@nikolasvetozarevic5344 2 жыл бұрын
@@ruslansteiger Yea but then the db server can become a bottleneck. DB server can also scale.
@alexandrupatrascu7666
@alexandrupatrascu7666 Жыл бұрын
Cool video! Thanks. Quick question, what about the web servers sync? Env file, storage files, etc. How can that be achieved?
@popetgirl
@popetgirl 2 жыл бұрын
Hi its really nice video you show us how easy load balancing is really great. I have a question how you are managing databases. each application server has separate database or using single database. if they have separate database how they are syncing data between them. is session is sticky with this load balancing? how post requests are managed by these servers?
@shalinnipuna4232
@shalinnipuna4232 2 жыл бұрын
Really good question. Please let me know if u found any answers
@popetgirl
@popetgirl 2 жыл бұрын
@@shalinnipuna4232 as i know load balancing is not easy, may be with laravel forge it is easy. He is using 3 app servers and 1 proxy server if you are using 3 db servers with these app servers than on DB server level you have create master slave server relation or replication. You need to configure proxy server send all post requests to One app server which handle all post requests and that server connected to your master db server insert and update data. Other slave db servers just read only (select) servers. Also you need another server or use one of app server for file storage or use file syncing between app servers. Hope there are much more better options its a really interesting topic.
@David-po3li
@David-po3li Жыл бұрын
you need a seperate server intended for database only. then connect your apps server to that. so even you have a hundred app server. you only need to connect to that database server
@JeanOlivier-vz4kh
@JeanOlivier-vz4kh Жыл бұрын
Great video Thanks, But what about the databases ?
@salahelabbar3371
@salahelabbar3371 2 жыл бұрын
Thanks , this is very nice, short and to the point. I will try it , My concern is will it work with Hashed IP method when traffic is coming through Clouflare?
@1234matthewjohnson
@1234matthewjohnson 2 жыл бұрын
what about sync between these servers in terms of database transactions?
@edwinencomienda
@edwinencomienda 2 жыл бұрын
would the application servers have sync database,queues? how it works? and if the sever 1 is down what happens to the db? not sync anymore?
@CaimAstraea
@CaimAstraea Жыл бұрын
What if I need servers in different region ? 🤔 That would make more sense I guess to redirect users based on their ip to the nearest server. A CDN is only useful for static resources.
@chitrangadpatil4201
@chitrangadpatil4201 2 жыл бұрын
How to manage Laravel Forge Cron Jobs / Scheduler on Load Balanced Servers? How to run cron jobs on both servers but without running it multiple times ?
@timothy8695
@timothy8695 2 жыл бұрын
Excellent video! This is some real high quality content!
@smartlinks6483
@smartlinks6483 2 жыл бұрын
I use apache for most of the servers, nginx, many times I face the error, 503, what do you use and prefer?
@nlveej
@nlveej Жыл бұрын
what will happen if the load balancer itself goes down?
@xaniushall715
@xaniushall715 2 жыл бұрын
Love this!!!
@adampatterson
@adampatterson Жыл бұрын
It would be absolutely amazing if you could also block IP addresses at the LB
@manuelsamudio1468
@manuelsamudio1468 2 жыл бұрын
Great video!
@pratik2645
@pratik2645 2 жыл бұрын
Nice explain
@berthojoris
@berthojoris 11 ай бұрын
Thanks man.... :)
@blogactivities5462
@blogactivities5462 2 жыл бұрын
At "3:57" you don't need to connect Load Balancer server to App servers from "NETWORK" section. you are wrong at this point.
@toluademiluyi3646
@toluademiluyi3646 2 жыл бұрын
Nice content
@MarkConstable
@MarkConstable 2 жыл бұрын
How to do something similar without using the commercial Forge product?
@bramwientjes
@bramwientjes 2 жыл бұрын
Great video!
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
Which team will win? Team Joy or Team Gumball?! 🤔
00:29
BigSchool
Рет қаралды 15 МЛН
Laravel: Create Public API with Cache and Rate Limits
12:18
Laravel Daily
Рет қаралды 46 М.
Getting Started with Laravel Reverb
10:44
Laravel
Рет қаралды 33 М.
Laravel Security: Top 7 Mistakes Developers Make
11:16
Laravel Daily
Рет қаралды 86 М.
Resolving Dependencies Helpers
7:37
Laravel
Рет қаралды 2,9 М.
Easily deploy a Laravel application with Docker
21:21
Andrew Schmelyun
Рет қаралды 90 М.
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН