moon
moon copied to clipboard
limiting number of parallel sessions for a browser type
Hi,
I have an usecase where I would like to have a maximum number of chrome parallel sessions, leaving the remaining ones (limited by license) for firefox.
How can this be done?
I saw a flag -browser-limit but what exactly it is doing is not clear.
Thank you, John
@johnqa all limitations in Moon are done using Kubernetes resource quota objects. Moon itself does not have a limitation for browser types. However in Moon 2 we have so-called multiple namespaces mode, where different teams can use the same license key but it's shared among multiple namespaces. In order to solve your issue you could create two users and a separate namespace for each of them. Then you limit one of these namespaces with a resource quota to the maximum number of computing resources you want to spend for Chromes. Second namespace can then have no limitation.