-
Notifications
You must be signed in to change notification settings - Fork 20
Monkey Raiders
`### Gym Raider accounts to pull from DB in percentage of total gyms inside the borders for gym scanning.
### Default 0.0(0%) Monkey Raiders turned off by default
#RAIDERS_PER_GYM = 0
#
### For example, if you want to have 0.03 raiders per gym, set 0.03.
### As a basic guideline, 0.03 would result in around 5 mins refresh time for all gyms.
### The following describes requirement of 3 workers per 100 gyms with guarantee of maximum 5 mins refresh time.
#RAIDERS_PER_GYM = 0.03
### Toggles scanning for gym names.
#GYM_NAMES = True
### Toggles scanning gyms for gym_defenders. Set this to False if you want to call GYM_GET_INFO RPC only for gym names.
#GYM_DEFENDERS = True
`
GET_GYM_INFO RPC calls are made with the following logic.
The objective is to ensure least recent updated gyms are prioritized in updating. Raids are prioritized over normal gyms.
The outcome is that it is possible to guarantee every valid gym to be updated with new info (if available) within 30 mins provided that the instance is running with sufficient workers. Most of the gyms in dense areas are updated within 1-5 mins on average. One gym update only in each map cell ensures that gym detail calls are made as little as possible, resulting in lower RPM usage.
A worker basically -
-
Sorts the gyms in range (450m) with unseen changes in the following order -
- Gyms with raid least recent updated first
- Gyms without raid least recent updated first.
-
Picks the first one from the sorted list (least recent updated / oldest).
-
Sends a RPC to get gym details of that gym.
-
Updates name, url, gym_defenders as necessary