<div dir="ltr">Yes, this is what I am doing now. I am creating a local install of MySQL<div>and than I am replicating the table into the local install, but I would </div><div>prefer to get around that.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 29, 2021 at 4:01 AM His Shadow <<a href="mailto:shadowpilot34@gmail.com">shadowpilot34@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">You could write a service that occasionally dumps user credentials<br>
into some format, like json and have your external helpers download<br>
it, parse it and use it as local cache. There will be delay, when<br>
adding new users, but authentication would be very fast. Unless the<br>
database is huge of course.<br>
<br>
сб, 28 авг. 2021 г. в 21:59, roee klinger <<a href="mailto:roeeklinger60@gmail.com" target="_blank">roeeklinger60@gmail.com</a>>:<br>
><br>
> Hello,<br>
><br>
> I have multiple Squid servers installed in different data centers across different cloud providers, and they all need to authenticate users using a single database (MySQL) on a separate server, which is also on a different cloud provider on a different data center.<br>
><br>
> I have already written an external authentication script that reads from MySQL and everything is working fine, however, I have some performance concerns, since the DB is located externally and in a different region of the world from the Squid server.<br>
><br>
> I made some speed tests to see how long it takes to query the DB as Squid would:<br>
><br>
> if the database is located on the same machine as Squid: 1.067-millisecond average query<br>
><br>
> if the database is located on the same datacenter as Squid: 2.67-millisecond average query<br>
><br>
> if the database is located on a different datacenter than Squid (different country as well): 38.9-millisecond average query<br>
><br>
><br>
> Now I am wondering, is 36-millisecond average added query time a big deal when dealing with HTTP/S traffic? how significant is this added time to Squid and will performance get hurt drastically?<br>
><br>
> I know there is some caching going on the Squid side, but I had to set the caching to really low values (around 15s), as per the requirement I was given.<br>
><br>
> If I will have no other choice, I will simply replicate the DB table from the DB server to the Squid server, but I prefer not to do that, as it will require installing MySQL on all the Squid servers (or some other DB, but then I have to do replication from different DBs).<br>
><br>
> Thanks.<br>
><br>
> _______________________________________________<br>
> squid-users mailing list<br>
> <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
> <a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
<br>
<br>
<br>
-- <br>
HisShadow<br>
</blockquote></div>