Activate Tableau Server Using the Authorisation-To-Run (ATR) Service
You can use the Server authorisation-to-run (ATR) service to activate Tableau Server deployed in on-premises, cloud, container or virtual environments without running out of licence activations. The ATR service achieves this by providing short-term leases of configurable duration (ATR duration) which ties the licence to the device until product key expiry date is met. ATR handles activation capacity tracking so if there is an underlying hardware change, maximum activation errors don't occur. This option is recommended for all Tableau Server installations.
If you are activating Tableau Server online (this is the default), Tableau Server connects to various internet locations for licensing purposes. For more information, see Communicating with the Internet(Link opens in a new window).
If you are activating Tableau Server offline, you can still use ATR service to activate, however there are slight differences in how ATR duration works with offline activations. For more information, see ATR Duration for Offline Activations.
We recommend using the Server authorization-to-run (ATR) service to simplify server licensing. If you chose not to use Server ATR, you will use the legacy licensing technology which does not provide the dynamic management capabilities of Server ATR.
Your choice of activation type will be permanent for this installation of Tableau Server. To change this later, you must backup, remove and then reinstall Tableau Server.
How Tableau Server ATR works
When ATR service is enabled, Tableau Server periodically contacts a Tableau-hosted authorization-to-run (ATR) service to verify that Tableau is authorised to run, based on its licence and the length of the authorisation window (ATR duration or lease). As long as this communication is successful, Tableau runs without any impact to the user.
When Tableau Server is activated offline and ATR is enabled, Tableau Server can not periodically contact the ATR service to verify Tableau is authorised to run. Instead, Tableau Server internally tracks the ATR Duration from when the product key was first activated offline.
ATR Duration
By default, an instance of Tableau Server is given a 5 day ATR lease (duration) to successfully contact the ATR service for verification. This means that after the initial authorisation, Tableau Server could be used for 5 days without network connection before the activation expired. The authorisation checks between Tableau Server and ATR service are attempted regularly, and each time a check is successful, the ATR duration is reset to its full length.
The authorisation check frequency varies, and is dependent on the ATR duration:
ATR duration | Authorisation check frequency |
< 4 hours | every 15 minutes |
< 24 hours | every 1 hour |
< 7 days | every 12 hours |
> 7 days | every 24 hours |
For example: If the ATR duration is 48 hours, Tableau Server will contact the ATR service every 12 hours to complete an authorisation check and the ATR duration is reset to 48 hours after each successful authorisation check. The ATR duration will then begin to count down to 0 until the next authorisation check. If the Tableau Server machine is shut down or there is no internet access, Tableau Server can no longer contact ATR service. If this happens, the ATR duration will not be reset to 48 hours and will continue to count down to 0. If Tableau Server is not started or cannot communicate with the ATR service before the ATR duration reaches 0, the licence will expire and you must activate the licence again.
Note: You should keep your Tableau Server running as much as possible. If Tableau Server cannot successfully complete an authorisation check within the ATR duration period, ATR service will reclaim the license lease and then you'll need to reactivate your licence.
To view the ATR duration, see tsm licenses atr-configuration get(Link opens in a new window).
Set or change the Server ATR duration
When using Server authorisation-to-run (ATR) to activate Tableau Server, you can change the ATR duration and use a setting different than the default of 432000 seconds (5 days). If you're creating a test server or virtual machine (VM) that will have a short lifespan, you might want to shorten the ATR duration. Similarly, if you have a server that you plan to keep for a long time, you might want to lengthen the ATR duration.
If you start up new VMs frequently, reducing the ATR duration can allow older VMs to release their capacity, allowing it to be used by new VMs. On the other hand, if you increase the ATR duration, renewal cycles will be longer but capacity is not released as often.
To change the ATR duration, you use the tsm licenses atr-configuration set –duration <value_in_seconds>
command. For more information, see tsm licences atr-configuration set(Link opens in a new window).
ATR duration in seconds | Minimum | Maximum | Default |
---|---|---|---|
Tableau Server (container) | 3600 (1 hour) | 2593000 (30 days) | 14400 (4 hours) |
Tableau Server (non-container) | 3600 (1 hour) | 7776000 (90 days) | 432000 (5 days) |
Tableau Server on Linux
To set ATR duration and manually start the Activation Service, run the following commands:
On the initial node, open a terminal session, and then use the following commands:
tsm licenses atr-configuration set -–duration <value_in_seconds>
tsm pending-changes apply
sudo su -l tableau
systemctl --user stop activationservice_0
systemctl --user start activationservice_0
Verify that the Activation Service is running by using the
tsm status -v
command. Tableau Server Activation Service should be listed as "is running". If the Activation Service is not started, run:systemctl --user restart activationservice_0
Tableau Server in a Container
To set ATR duration and manually start the Activation Service, run the following commands:
On the initial node, open a terminal session, and then use the following commands:
tsm licenses atr-configuration set -–duration <value_in_seconds>
tsm pending-changes apply
sudo su -l tableau
supervisorctl stop activationservice_0
supervisorctl start activationservice_0
Verify that the Activation Service is running by using the
tsm status -v
command. Tableau Server Activation Service should be listed as "is running". If the Activation Service is not started, run:supervisorctl restart activationservice_0
Note: For Tableau Server running in a container, the TTL Start and TTL End values reflect the current lease being used by Tableau Server. Container leases that are shorter than a day are refreshed hourly, but longer leases can take up to 24 hours to renew.
ATR Duration for Offline Activations
When Tableau Server is activated offline, the ATR duration is set to either one year from the day the product key was activated offline, or to the renewal date of the product key, whichever comes first. Once the ATR duration reaches the set date, the product key will become deactivated. Since Tableau can not communicate with the ATR service in offline environments, there are no authorisation checks.
If you use the tsm licenses atr-configuration get
command to view the ATR duration for offline activations, the result will be 0
, which is expected. To view ATR duration for offline activations, use the ATRDiag -product "Tableau Server"
command instead. For more information, see ATRDiag.exe Command Line Reference. In the resulting output, the TTL End
date is the date the ATR duration ends.
Updating ATR duration in offline environments
Because authorization checks are not possible in an offline environment, the ATR duration is set to a fixed value as described above. To avoid unplanned Server downtime, be aware of the ATR duration in your installation, and plan to follow these steps to update the ATR duration before it expires:
Deactivate the existing licence key.
For details, see Deactivate Tableau Server Offline
Activate your new key.
For details, see Activating Tableau Server in an Air-Gapped Environment
Move a Server ATR product key to another Tableau Server
If you want to stop using your product key on an existing Tableau Server and use it on a new installation of Tableau Server, you can move your Server ATR product key. You might want to move product keys when:
Switching between development or pre-production environments.
Moving Tableau Server to upgraded hardware.
Moving Tableau Server to cloud infrastructure.
Using an ephemeral Tableau Server, such as a virtual machine (VM) or container.
Deactivate a product key for reuse on another Tableau Server
Deactivate a product key in version 2021.4 and later
You can remove product key(s) that were activated using Server ATR when you want to reclaim licence capacity from one Tableau Server installation and use it on another. For more information about reclaiming a product key, see Deactivate Product Key.
Deactivate a product key in version 2021.3 and earlier
When ATR service is used to activate a Tableau Server licence you cannot manually deactivate the licence. You can have one production and two non-production installations per licence. If you have unused activations on a licence, you can activate the same licence on another Tableau Server. If you’re out of activations, you can still activate the licence after the ATR lease expires by taking the following steps:
Disable the existing Tableau Server from refreshing its leased activation. You can do this using any of the following methods:
Shut down your existing Tableau Server.
Uninstall the existing Tableau Server.
Disconnect the existing Tableau Server from the Internet by unplugging the ethernet cable or disconnecting Wi-Fi.
After the ATR lease expires, you can reuse the licence on another Tableau Server.
On the new computer, install Tableau Server.
When prompted, activate Tableau Server using the same licence.