HT202657: OS X Server (Mountain Lion): Advanced configuration of the Caching service

Learn about OS X Server (Mountain Lion): Advanced configuration of the Caching service
Taffy Apple_

Q: Can you stop caching servers querying for peers?

Hi there, does anyone know if the MaxPeersToQuery value can be set to none? We don't want the caching server at any one school querying another schools caching server as a peer. If you set the value to 0 then it's unlimited. I can use serveradmin settings caching:MaxPeersToQuery = 1 so that only one peer is queried but we don't want any.

Mavericks Server, OS X Server

Posted on Feb 14, 2014 2:54 PM

Close

Q: Can you stop caching servers querying for peers?

  • All replies
  • Helpful answers

  • by MrHoffman,

    MrHoffman MrHoffman Feb 15, 2014 10:22 AM in response to Taffy Apple_
    Level 6 (15,612 points)
    Mac OS X
    Feb 15, 2014 10:22 AM in response to Taffy Apple_

    If the schools are configured across subnets or can be partitioned or firewalled at the network layer at the site-to-site link (as would already be typical in many networks), this problem goes away?

  • by Taffy Apple_,

    Taffy Apple_ Taffy Apple_ Feb 16, 2014 2:02 PM in response to MrHoffman
    Level 1 (0 points)
    Feb 16, 2014 2:02 PM in response to MrHoffman

    Thanks for the reply. I don't have access to the network to make those changes. We are an IT company supporting schools. I cannot see the Local Authority helping me with it either. Getting even the most basic changes made is incredibly hard. Does anyone know the command for setting the Max Peers to none? Using the value "none' or "false" maybe. I'm no command line expert.

  • by MrHoffman,

    MrHoffman MrHoffman Feb 16, 2014 2:20 PM in response to Taffy Apple_
    Level 6 (15,612 points)
    Mac OS X
    Feb 16, 2014 2:20 PM in response to Taffy Apple_

    Beyond the docs (and maybe using PeerFilterRanges or ListenRanges) call Apple support and ask.

  • by Taffy Apple_,

    Taffy Apple_ Taffy Apple_ Mar 7, 2014 8:22 AM in response to MrHoffman
    Level 1 (0 points)
    Mar 7, 2014 8:22 AM in response to MrHoffman

    This is the confusing bit from Apple "The caching server will query peers that aren’t in any of the PeerFilterRanges for assets, and will not query peers not in any of the PeerFilterRanges."

    Anyone explain that?

    The schools use a range of IP's based on 10.xxx.2.1 for their Apple devices. So if I have a caching server with IP address 10.13.2.1 I don't want it talking to the server on 10.14.2.1 20, server 10.15.2.1 etc etc 20 miles away on 10meg internet for assets. So how do I set a PeerFilterRanges array to stop that happening? Thanks