Academy and Foundation unixmens | Your skills, Your future
2.28K subscribers
6.65K photos
1.36K videos
1.23K files
5.97K links
@unixmens_support
@yashar_esm
unixmens@gmail.com
یک کانال علمی تکنولوژی
فلسفه متن باز-گنو/لینوکس-امنیت - اقتصاد
دیجیتال
Technology-driven -بیزینس های مبتنی بر تکنولوژی
Enterprise open source
ارایه دهنده راهکارهای ارتقای سازمانی - فردی - تیمی
Download Telegram
زمانیکه تعداد کاربران سایت بیشتر میشود و ترافیک سایت افزایش می‌یابد عموما یک نمونه ( instance ) از برنامه نمیتواند پاسخگوی همه درخواست‌ها باشد و مجبور هستیم چندین نمونه برنامه را بر روی چند سرور اجرا کنیم. با این حال نیازمند یک وب سرور هستیم که درخواست‌های ارسال شده را در بین instance های موجود پخش کند. با انجام این کار تعداد ریکوئست‌ها در بین instance ها تقسیم میشوند. برای انجام اینکار میتوانیم از nginx استفاده کنیم. nginx قابلیت load balancing را دارد. برای پیاده سازی load balancing در nginx باید در فایل nginx.conf یک گروه از نوع upstream ایجاد کنید در کانتکست http.

http {
upstream backend {
server backend1.example.com;
server backend2.example.com;
server backend3.example.com;
}
}

در کانفیگ بالا یک گروه به نام backend ایجاد کرده‌ایم ...

#nginx #proxy #reverseproxy #reverse_proxy #load #loadbalancing #load_balancing
👍3
کتابی که در مورد varnish نوشته بودم .
Varnish is a free and open-source web application accelerator. It is designed
to improve the performance of busy, dynamic websites by caching web content in memory, allowing web servers to handle more requests per
second while reducing the time needed to serve each request. Varnish also includes a flexible configuration language and a powerful set of
tools for analyzing and troubleshooting web traffic. It is widely used by large-scale websites, content delivery networks (CDNs), and other
web-based applications to speed up their performance and reduce their server load.
https://lnkd.in/dvVVpqB

#varnish #reverseproxy #yashar_esmaildokht #book #yashar_esmaildokht #reverse #proxy

@unixmens
1