Тёмный

Tomcat Clustering Series Part 1 : Simple Load Balancer 

Подписаться
Просмотров 56 тыс.
% 280

I am going to start new series of posts about Tomcat clustering. In this first post we will see what is problem in normal deployment in only single machine, what is clustering and why is necessary and how to setup the simple load balancer with Apache httpd web server + Tomcat server cluster.
Visit : www.ramkitech.com/2012/10/tomcat-clustering-series-simple-load.html
Subscribe
ru-vid.com
Website
www.ramkitech.com
Ramki on Twitter
ramkicse

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

 

9 окт 2012

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 69   
@daviddaytona
@daviddaytona 10 лет назад
Excellent presentation, great tutorial and explanation. Thank you for posting these tutorials.
@premanandramnath
@premanandramnath 10 лет назад
Thanks Rama Krishnnan. Its really nice & quick refresh of basics.
@RamakrishnnanEP
@RamakrishnnanEP 10 лет назад
Thanks :-)
@CristopherCerrillo
@CristopherCerrillo 10 лет назад
Excellent tutorials have brought me a lot of trouble!
@Purplehaze778
@Purplehaze778 8 лет назад
Man, you are awesome. Real practical example.
@RamakrishnnanEP
@RamakrishnnanEP 8 лет назад
Thanks :-)
@deeepzzz
@deeepzzz 11 лет назад
its too nice Rama krishna. Too much helpful. thanks.
@balajip.j1830
@balajip.j1830 8 лет назад
Nice info in simple manner. Rocking !!!
@RamakrishnnanEP
@RamakrishnnanEP 8 лет назад
thanks :-)
@gustavoperez3846
@gustavoperez3846 9 лет назад
Hi Rama nice to meet you. Very very nice explain for this work. We had several years worked with apache + tomcat. I am look your new explain with nginX as load balancer. Did you use other non open source applications server like IBM webphere or Glasshfish for comparing with tomcat working in cluster? Thanks in advance
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
+Gustavo Pérez no. i mostly used tomcat only
@gustavoperez3846
@gustavoperez3846 9 лет назад
Ha okey very nice tutorials and clear all of yours. I very impressive, I'm working in a public clinical hospital in Uruguay with very little or nothing of money at all. Tomcat + Java combination helped us for develop many application but when we began worked in a cluster enviroment we were experimented a few lost of velocity with some of these applications. Thanks for share your experience Gustavo Pérez
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
Thanks ☺
@mohammadalkhateeeb5131
@mohammadalkhateeeb5131 8 лет назад
Thanks a lot Rama , but my case that I've JSF 2 web app and I follow the steps that mentioned in the video and the balancer successfully redirect to each tomcat instance but to empty page Thanks
@taranehk5734
@taranehk5734 8 лет назад
thanks. it save my time.
@nithinjohn135
@nithinjohn135 3 года назад
Could you make an updated version videos please.. On tomcat and clustering
@daxmlai
@daxmlai 3 года назад
Are you providing training on Tomcat?
@venkaizen
@venkaizen 9 лет назад
Thanks for the Video and blog Rama - great work :)
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
+venu thangalapally Thanks :-)
@venkaizen
@venkaizen 9 лет назад
Rama - were u able to test session replication on tomcat version 8 ?
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
+venu thangalapally yes
@mail2mphani
@mail2mphani 10 лет назад
Hi Ramki.. thank for sharing CBT's ..these are very helpful to me to configure tomcat cluster.. Thank you again.
@RamakrishnnanEP
@RamakrishnnanEP 10 лет назад
Welcome Phani :-)
@RamakrishnnanEP
@RamakrishnnanEP 10 лет назад
yes sure. ramkicse@gmail.com
@SatyamSingh-qo8ou
@SatyamSingh-qo8ou 4 года назад
Hi would like to know about San storage and storage part also AIX based commands and it's functions It will be helpful if u will make videos on server upgradation of aix and also Linux
@santosharakere
@santosharakere 11 лет назад
good demo. thank you. - Santosh Marigowda
@kiranharidas2813
@kiranharidas2813 11 лет назад
Hi Ramkrisha, I have configured tomcat Cluster as per your document all are working fine. But our product is Saas product we we usually access it with a link address 50.16.49.58:7080/dbsync2/login.m (this is the server with i config cluster). if i do access like this means it will not go through the LB. Here is the problem 50.16.49.58/dbsync2/login.m when am using this line am getting error like URL is not found. How can i resolve this issue.... ? Thanks for the Video.
@bhaskarbhardwaj9448
@bhaskarbhardwaj9448 11 лет назад
Thanks a TON!! The Great piece of work
@hellogopal
@hellogopal 11 лет назад
Nice video!
@nadeem5836
@nadeem5836 7 лет назад
Thanks for sharing video, but i am not able to configure bcz in this tutorial you not shown httpd.conf file. In you previous video Virtual Host + apace httpd+tomcat+modJk we had 3 different sites that are hosting on three different but in this I think we have host 1 sites in all the tomcat using round-robin. Pls share server.xml and httpd.conf file.
@nagmak5137
@nagmak5137 6 лет назад
Hi Ramakrishna, I have a requirement where in I need to forward requerest based on user locale to different clusters. How to write that logic in apache load balancer.
@RamakrishnnanEP
@RamakrishnnanEP 11 лет назад
thanks deepak.
@RamakrishnnanEP
@RamakrishnnanEP 11 лет назад
Hello Kiran, sorry for late reply. i not aware in comment. ok what is this IP address 50.16.49.58? Is it Load balancer? and Is load balancer is running on port 7080?
@polesetti
@polesetti 9 лет назад
very nice, thanks.
@MegaVerif
@MegaVerif 9 лет назад
It is good to have failover and load balancing. Imagine you have 5 tomcat instances for load balancing and you want to make an update . can we put the content of the app server in a shared storage ? So that it makes it easy to update ?
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
DEGFSDFGS yes but its not recommended way because it updating all servers that time undeploy old one deploy new one. that time some moment service unavailable situation happen.
@MegaVerif
@MegaVerif 9 лет назад
Rama krishnnan EP Thank you for your good explanation. I heard that Glassfish has the load balancing and failover already preconfigured . If you have time it may be good to hava walk through
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
i think its not. oracle use their product to use load balancing. Glashfish don't have internally. Domain controller is just managing purpose and like tomcat the make cluster. but we need to put load balancer in front of them
@MegaVerif
@MegaVerif 9 лет назад
So from the network perspective . The http server is connected to internet and the application server is only accessible locally .The http server access the application server content and load it to the user . Is that right or all is accessible via internet ?
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
DEGFSDFGS Yes thats correct.
@vishnugupta88
@vishnugupta88 9 лет назад
Hello Ramki Sir, I have an issue my apache server is on high load got hang after some interval Please suggest how resolve it
@Az9rtt
@Az9rtt 11 лет назад
Looking forward for more tuts :)
@MegaVerif
@MegaVerif 9 лет назад
What happens if one server fails ? The requests will be distributed on 2 servers or 3 servers ?
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
DEGFSDFGS yes its forward to any server. all are holding the sessions so the can continue to process
@MegaVerif
@MegaVerif 9 лет назад
Rama krishnnan EP so out of 3 server 1 is down and request are still forwarded to this server . Then there is problem i think ?
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
DEGFSDFGS If Server 1 is down then its forwards to remaining servers(server2 and 3). whenever server 1is up then it also get request
@RamakrishnnanEP
@RamakrishnnanEP 11 лет назад
Thanks Santosh
@quannguyen185
@quannguyen185 9 лет назад
In theory, is it ok if there are just one worker, or I have to configure with at least 2 instances? I know that it's is useless if there is just 1 instance.
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
quan nguyen even u can put one worker also, but of course its not a cluster, and u don't have cluster so no high availability and scalable then why need? the purpose is ur tomcat running on port 8080 an ur httpd running on port 80. so outside world access ur tomcat on port 80 only. here ur httpd server act as reverse proxy for ur tomcat.
@quannguyen185
@quannguyen185 9 лет назад
Tks for your answer. I'm still confusing about the balancer. If all requests have to be executed by the balancer first, and then they will be redirected to Tomcat instance. So if the amount of requests is extremely great, can the balancer be overload and if it happend how to deal with it or just preventing this case happend?
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
quan nguyen Load balancer is just like delegator. its forwards to tomcat instance, where actual process are happened. some time load balancer are also exhausted. so we need to put more than one load balancers and each one need to configure all tomcat instances. so any load balancer get the request its forward the proper tomcat instance. here each load balancer ger public IP and add to DNS recoreds. check nslookup www.google.com u will get all LB IP address.
@quannguyen185
@quannguyen185 9 лет назад
Is it possible if I use Tomcat load balancer with a web service? I need to use load balancer and combine it with my web service. But my WS is SoapWS so I don't know how to configure the load balancer. :-(
@RamakrishnnanEP
@RamakrishnnanEP 11 лет назад
Thanks Bhaskar :-)
@SatyamSingh-qo8ou
@SatyamSingh-qo8ou 4 года назад
Please post all things which needs to know by the admin including scripts
@santu971
@santu971 10 лет назад
Please suggest how to insall mod_jk file using apache web server
@MegaVerif
@MegaVerif 9 лет назад
So in this example what is the diffrence if i use Windows server network load balancing ?
@RamakrishnnanEP
@RamakrishnnanEP 9 лет назад
DEGFSDFGS I think almost same feature.
@22618518
@22618518 11 лет назад
How its possible to configure private JVM in existing tomcat server
@RamakrishnnanEP
@RamakrishnnanEP 11 лет назад
Thanks
@kyleshapiro8900
@kyleshapiro8900 10 лет назад
Video has great info, but having a very difficult time understanding you. English subtitles would be helpful.
@RamakrishnnanEP
@RamakrishnnanEP 11 лет назад
sure anish :-)
@RamakrishnnanEP
@RamakrishnnanEP 11 лет назад
Hello Gaurav Rishi, my site is working ramkitech(dot)com
@22618518
@22618518 11 лет назад
hi ur site is not working
@paske2001
@paske2001 10 лет назад
I can't understand you guy.. sorry
@RamakrishnnanEP
@RamakrishnnanEP 10 лет назад
what happened? any issues?
@paske2001
@paske2001 10 лет назад
Rama krishnnan EP you should put subtitles down there, it would be very helpful :)