Tyk is licenced according to the number of gateways managed by a dashboard in each environment.
There is a free licence, for a dashboard to manage an environment containing a single gateway.
There are also licences to manage 2 or more gateways in an environment, these have a cost attached and cna be bought from the website, or by contacting an account manager or partner.
Each licence can only be used in a single environment, using it in multiple environments will render you liable for additional charges.
We define an environment as 1 or more gateways connected to a single Redis instance (DB, cluster, elasticache, etc) and managed by a dashboard.
If you have “horizontally scaled” the dashboard within an environment, so both dashboards connect to the same MongoDB, and are managing the same cluster, then the same licence can be used in both dashboards, as they share a MongoDB and are managing the same cluster of Tyk gateway.
However, if you are using the licence in 2 x dash, each connected to a different mongo DB/managing a different gateway cluster, you will receive a bill for over-use of the licence.
I’d recommend you contact your account manager and they can make sure you have the correct licences and are not incorrectly charged.