Exclude relay from autoselection

I want to exclude my master and two top level relays from any autoselction methods. I’ve found and configured the _BESRelay_Selection_AutoSelectableRelay to 0 on the servers. Checking the registry on these servers, I do see that they have been applied. There don’t appear to be any actionsite propagation issues via the healthcheck, but when I run action (201) “Force BES Clients to Run Relay Autoselection”, I still have clients using one of these 3 relays. Am I doing something incorrectly or should I check other settings?

Thanks for your help!

Something I’ll be configuring in our environment soon is the Relay Affilation setting and it sounds like it could be up your alley. You can set up a kind of failover that tells the client to first seek out relays advertising a certain affiliation first before moving down the list. I’d recommend giving your Top Level relays a name that makes it the last-ditch effort to connect and see if that helps. You could also try setting the _Enterprise Server_ClientRegister_MaxChildCount setting to limit the amount of clients that are allowed to register with it to 1?

You need to put code and client settings in a code block using the “</>” button in the UI so that it does not get messed up.

You should have the relays that you don’t want to be selected during autoselection advertise a relay autoselection group that does not exist on any of the clients. If you are using the “*” relay autoselection option on any of your clients, then that could be part of it.

All that said, It is likely that these clients are using these relays because it failed through all of the autoselection options and used these as a final measure. There is not much you can do to prevent this completely, but some things to reduce it.

So in tangent with the relay affiliation you’re saying just create an affiliation group that doesn’t exist, and place the relays I don’t want to be targets in that group? That makes sense to me, but I’m not sure I’m following the “</>” comment.

I enabled the _BESRelay_Selection_AutoSelectableRelay=0 setting in my registries on these servers but they are still getting absolutely hammered with autoselection clients.

Thanks for the help guys

I would recommend trying to set the client setting through a task rather than through the registry directly. That might work better. You may also need to reboot the relay or restart the relay service for the setting to take affect.


The forum software on this site interprets “_” on both sides of a set of text as an indication to italicize.

You should instead post all code and things that should be formatted very specifically in a code block like this:

code goes here

You do this by either adding 4 spaces to the beginning of it, or by clicking the “</>” button in the UI when writing your post.

Example:

_BESRelay_Selection_AutoSelectableRelay=0