The example for setting up policy and token files shows two nodes in a cluster called
mycluster . One node is an inference engine and the other is a cache engine.
Procedure
Assume that the ListenURL for the cache ( controller ) is
tcp://10.98.192.101:9091 and theListenURL for the inference ( requester ) is
tcp://10.98.192.101:9090.
Generate the policy and token files from as_admin.
Edit the
metaspace_access
line in both files to set the correct cluster name.
Also edit the line to place the listen url of the controller into the
discovery= setting.
Note: There is no rule that caches have to be controllers, or inferences have to be requesters. The roles are interchangeable as long as there is one controller in the cluster.