squid proxy load balance

chompa1422

Newbie
Joined
May 6, 2022
Messages
4
Reaction score
0
cant seem to find an answer, if someone could help id greaty appreciate it. I an getting 100% processor usage even after adding "workers" trying to see if theres a way to limit connections per proxy IP so users who tend to want to run multiple tasks per IP dont over load the server
 
Global limit: http://www.squid-cache.org/Doc/config/client_ip_max_connections/

Individual limits :
http://www.squid-cache.org/Doc/config/acl/ :
(look up for `maxconn`)
ive tried maxconn but doesnt really work if i set maxconn 3 connections per IP it really only does 1 and the users still blast the server with 30 tasks per IP
 
ive tried maxconn but doesnt really work if i set maxconn 3 connections per IP it really only does 1 and the users still blast the server with 30 tasks per IP


working as expected.

acl password proxy_auth REQUIRED acl maxC maxconn 2 http_access deny password maxC http_access allow password http_access deny all

see, it allows 2 connections from 1 client IP for all authenticated clients.
 
working as expected.

acl password proxy_auth REQUIRED acl maxC maxconn 2 http_access deny password maxC http_access allow password http_access deny all

see, it allows 2 connections from 1 client IP for all authenticated clients.
RIght the issue is that if the website is running more than 3 apis per site you cant use more than 1 task so it slows everything down
 
Back
Top