Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    UNOFFICIAL GUIDE: Activating Multiple Squid Workers for increased non-disk throughput

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 281 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JonathanLeeJ
      JonathanLee
      last edited by

      Hello fellow Netgate community members, I wanted to share this with you and other advanced Squid users as you know the Squid package security updates completed upstream, So I wanted to share this for future use.

      Squid does have an ability to run multiple workers. Again, to do this with disk caching you can only do this with use of cache_dir rock. pfSense does not support use of rock disk caching yet. There is a work around and most users do not use disk caching so simply set it to null (see below). So, you can run multiple workers on pfSense when disk caching is disabled.

      9b40c5c7-d6ae-4268-914d-1290ddb1f61c-image.png

      Another change you must do is add a system tunable.

      da5fb36e-cbf9-4388-a152-d8161b1278aa-image.png

      After you make this change the failure errors will stop.
      Next add an advanced configuration option in squid. (see below for why this is need)

      workers 3
      

      you must reboot the Squid system after not a refresh a full restart.

      Number of main Squid processes or "workers" to fork and maintain.
      	0: "no daemon" mode, like running "squid -N ..."
      	1: "no SMP" mode, start one main Squid process daemon (default)
      	N: start N main Squid process daemons (i.e., SMP mode)
      
      	In SMP mode, each worker does nearly all what a single Squid daemon
      	does (e.g., listen on http_port and forward HTTP requests).
      

      Squid can run multiple workers if you have disk cache disabled or set to null. It really speeds up SSL_BUMP traffic and proxy traffic a lot. This is the work around for the package lacking support for rock cache.

      Please let me know if you see anything wrong here.

      Ref:
      http://www.squid-cache.org/Doc/config/workers/
      https://wiki.squid-cache.org/Features/SmpScale
      https://wiki.squid-cache.org/ConfigExamples/SmpCarpCluster

      Make sure to upvote

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.