Тёмный

Load Balancer with Wordpress Instances on Amazon Lightsail 

State of Charge
Подписаться 2,9 тыс.
Просмотров 7 тыс.
50% 1

This video is the 3rd video in our Amazon Lightsail series where we discuss attaching instances to a load balancer, configure DNS zone, https and SSL certificates, link to a database and set up basic configurations of a load balanced network.
The video is a bit longer than I anticipated it being, but it will be worth your while watching to the end as we learn how to add new instances and see in real time how how the load balancer will route traffic according to specific situations. If you have the need to scale your servers easily and effectively, this is the video for you!
PRODUCTS USED TO PRODUCE THIS VIDEO:
○ Microphone: amzn.to/3hXsQ0l
○ JOBY GripTight PRO TelePod: amzn.to/316sPR0
○ JOBY Beamo, Mini LED Light: amzn.to/2XivhTf
○ Manfrotto MTPIXIEVO PIXI EVO 2: amzn.to/3jWOeEO
○ TubeBuddy: www.tubebuddy....
VISIT US ONLINE:
○ Website: stateofcharge.tv
WE ARE A SOCIAL CREW!
○ INSTAGRAM: / state_of_charge
○ TWITTER: / state_of_charge
○ PINTEREST: / boards
○ TIKTOK: tiktok.com/sta...
Be sure to subscribe to our channel:
smurl.io/youtube
John Mahon is a business owner, entrepreneur, pastor, husband, father, technology junkie, solar enthusiast, Apple Genius and world traveler. He has had some unique experiences in life. His RU-vid channel / stateofcharge will attempt to chronicle these experiences and share some of the things he has learned. In the end, John hopes he and his subscribers will be better, all around people. Please join us on this journey. Subscribe and help us spread the word.
What is your "State of Charge?"
DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that we provide, we may receive a small commission. There is no additional charge to you! Thank you for supporting our channel so we can continue to provide you with free content with each video we upload!

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@kambizroshan56
@kambizroshan56 3 года назад
Awesome video mate! Informative, concise, practical. Really enjoyed it, cheers 🙏
@xtortu
@xtortu 3 года назад
Awesome video!! Very helpful, thank you!
@CeleronS1
@CeleronS1 3 года назад
This is very cool stuff! Thank you showing it!
@StateOfCharge
@StateOfCharge 3 года назад
Thanks for the reply!
@misanoracing8637
@misanoracing8637 3 года назад
Awesome video, very informative! How do you insure that file changes are synced across all of your instances?
@GRO-CONNECT.COM-YOUTUBE
@GRO-CONNECT.COM-YOUTUBE 2 года назад
Great Info!! Thank you, When you have Instances, how are they twined together? The load balancer alone? do they each have their own static Ip & DNS?
@sanal3492
@sanal3492 4 года назад
Thank you for the video. Very informative. A question. Wordpress relies on mySql database that is already available in the same instance. Aren't we suppose to migrate the database from Wordpress instance to the newly created mySql database instance?
@StateOfCharge
@StateOfCharge 4 года назад
When you load balance you need all instances to reference an external database that each instance will run from collective. Otherwise your instances will not be synchronized. Same would apply to your media files. They should be served from something like an S3 bucket. This will keep all your instances, data and assets synced. I hope this helps? Please like the video and consider subscribing to the channel if you have not already. Thanks! John M.
@kylonjohn969
@kylonjohn969 3 года назад
Thanks for the Video, I agree it was clear and informative...I however feel like I missed something somewhere because even though i followed the steps, i get an error "my connection is not private"...and a "NET::ERR_CERT_COMMON_NAME_INVALID" so my website doesn't load at all....I used Lets Encrypt with plesk to setup initially before attempting this whole setup so i was wondering if that may be the cause...Can you share some steps we can use to troubleshoot? I believe its a certificate issue...
@danielmendezdorantes4073
@danielmendezdorantes4073 3 года назад
hello. I have done all the part 1 and part 2 and everything was pretty pretty good. But now in part 3 I go to Databases and it says "You have no databases right now". Then I go to manage my instance to try to find the associated DB but there's not any tab for this. So, what can I do? thanks
@StateOfCharge
@StateOfCharge 3 года назад
The database is set up with the instance. Unless you need an external database, you should be fine. Otherwise, create a database using the database tab and then link all your instances to this external database. You will have the database address and the username and password to enter into your connection string in your config file.
@patmatt8283
@patmatt8283 3 года назад
Thanks for the awesome videos. Should we still set up cloudfront with load balancing? Or is load balancing enough?
@StateOfCharge
@StateOfCharge 3 года назад
You can use cloud front if you like, but I simply point the domain to the load balancer and then have AWS validate for ssl. For ease of use, I use godaddy for dns management.
@patmatt8283
@patmatt8283 Год назад
@@StateOfCharge Hey man. How are you? Loved your videos. Haven't seen anything from you in a while. Hope you're doing well. God Bless!
@danielmendezdorantes4073
@danielmendezdorantes4073 3 года назад
Hi! Excelent video! I already subscribe and like the video, hehe. Just one question: from video part 2 to video part 3, you duplicate twice the WP instance in order to have 3 images and then add them to Load Balance, right? if this is like this (I'm almost pretty sure it is) then you answer my next question: for load balancer I need to have same 3 installations of WP, right? I mean, it doesn't work if I create first 3 WP manual installations, I mean: I only create 1 installation and from this unique installation I'll create the rest, correct? One last question: can you please same video for Plesk installation in AWS LightSail? right now I use AWS EC2 + Plesk on CentOS7 but I think it is better to migrate everything to LightSail and the apply Load Balancer to this instance (in fact, have you consider to make a video for migrate WP sites to your WP lightsail instance? or how to use PHPmyAdmin to manage lightsail DB?). It would be great if you have this video too. Also, have you consider to create a CDN tutorial (part 5) for lightsail? hehe, I think I asked for many things, I'm sorry but all this is very exciting to me. Great work!
@StateOfCharge
@StateOfCharge 3 года назад
Thanks daniel. These are great ideas. I’ll consider making more videos. All instances should be the same. So duplicate from a snapshot to add instances to your cluster. You want to keep your instances and media synced between all instances.
@herronwask5239
@herronwask5239 3 года назад
How can we transfer local mysql data to remote mysql . ? I created Database in lightsail and understood how to link it but dont know how to transfer old data to new database .
@BERIBYTES
@BERIBYTES 3 года назад
How to add Cloudfront on top of loadbalancer and configure it? My loadbalancer is failing health check, to fix that have to add if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on'; But also have to change wp-config for the CDN. Website stops loading if I enter both commands for loadbalancer and cdn in wp-config so loadbalancer shows failed health check.
@francobayugar5443
@francobayugar5443 3 года назад
This work with one instance?
@StateOfCharge
@StateOfCharge 3 года назад
It can work with one instance but there is no point in load balancing a single instance.
@xtortu
@xtortu 3 года назад
I have a question, how do i redirect http traffic to https so it always appears as a safe site? I have the ssl but can't seem to find the option in the load balancer to force it. Thanks in advance!!
@xtortu
@xtortu 3 года назад
I was having a too many redirtects error when forcing https and adding this to the .htaccess solved it RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTPS} off RewriteRule ^ %{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] Hope it helps if someone is having the same problem.
Далее
Configure NGINX as a Reverse Proxy
16:43
Просмотров 214 тыс.
Setup a Load Balancer on AWS Lightsail with SSL
11:38