Configuring sites: Brokering
Configuring a broker
Once you have configured a broker in Lens, this broker then needs to be associated with a site. This is because a single broker can be responsible for multiple sites. Or each site may need its own broker. It completely depends on the environment and the configuration of the Lens platform.
To set up a broker for the site:
Login to the application
In the left sidebar, select
Configuration
then click theSettings
optionSelect the
Manage site
item from theSites and Collectors
sectionSelect the site you would like to edit from the dropdown menu
Click the
Brokering
tabScroll down to the
Broker
sectionIn the
Use broker configuration
field, select the broker configuration you created previously. See this article for more.Scroll to the bottom of the page
Click the
Save
button
Leostream specific options
Webhooks
Webhooks help make the Lens application smarter. As Lens is not a connection broker, we do not always know when certain events happen. If the broker supports it, then it’s highly recommended to configure webhooks.
Set the session start webhook
In the
General
tabCheck the
Send HTTP GET request at start of session
optionIn the
URL to call at start of session
field, enter the webhook from theInfrastructure healthcheck webhook
button in Lens. Leave theTimeout in seconds
field at5
.
Set the session start webhook
In the
General
tabClick the :3_dot_menu: button next to the pool you want to configure, and then select
Edit
from the menuIn the modal, scroll down to the
When User is Assigned to Desktop
sectionCheck the
Send HTTP GET request
optionIn the
URL to call at assignment time
field, enter the webhook from theSession start webhook
button in Lens. Leave theTimeout in seconds
field at5
.
Set the session end webhook
Login to the Leostream UI
In the left sidebar, go to
Configuration
and then selectRelease Plans
Find the plan you want to edit, and click the
Edit
linkScroll to the
When User Disconnects from Desktop
sectionIn the
URL to call
field, enter the webhook from theSession end webhook
buttonClick the
Save
button
Importing broker desktops
This will show all desktops that are present in Leostream, even if they are not found in another supported platform. This can be useful for displaying workstations in Lens that are supported by Leostream but not supported natively by Lens. To enable this feature:
Login to the application
In the left sidebar, select
Configuration
then click theSettings
optionSelect the
Manage site
item from theSites and Collectors
sectionSelect the site you would like to edit from the dropdown menu
Click the
Brokering
tabScroll down to the
Workstations
sectionEnable the
Import workstations from broker when not found via other platforms
toggleScroll to the bottom of the page
Click the
Save
button