Floating Licenses 浮动许可证
This section describes the setup and configuration of environments using floating licenses. If you have purchased node-locked licenses, please refer instead to the Node-locked licenses section for information on using your license.
本节描述使用浮动许可证的环境的设置和配置。如果您已经购买了节点锁定许可证,请转而参考节点锁定许可证一节,以获取有关使用许可证的信息。
Overview
概览
Redshift supports the use of floating licenses which allow licenses to be shared between all machines on your network. The number of floating licenses determines the number of machines which can be rendering with Redshift concurrently.
Redshift 支持使用浮动许可证,允许在网络上的所有机器之间共享许可证。浮动许可证的数量决定了可以使用 Redshift 并发呈现的机器数量。
To use floating licenses, you will need to install the RLM license server software on one computer on your network which has you have designated as your license server. The license server manages your Redshift licenses through a license key. The license key defines the number of computers that can be rendering concurrently and the version(s) of Redshift that can be used.
要使用浮动许可证,您需要将 RLM 许可证服务器软件安装在您的网络上的一台计算机上,该计算机已指定为您的许可证服务器。许可证服务器通过许可证密钥管理您的 Redshift 许可证。许可证密钥定义可以并发呈现的计算机数量以及可以使用的红移版本。
Note that Redshift is license per-machine, not per-GPU. Once license allows you to render with any number of GPUs on a single machine, including rendering multiple jobs each assigned to a unique subset of GPUs on the machine.
请注意,红移是每台机器的许可证,而不是每个 gpu。一旦许可允许您在单台机器上使用任意数量的 gpu 呈现,包括呈现多个作业,每个作业分配给机器上唯一的 gpu 子集。
Redshift uses version 12.1BL3 of the RLM license server and supports Windows (32-bit & 64-bit), Linux (64-bit only) and macOS (64-bit Intel only).
Redshift 使用 RLM 许可证服务器的12.1 BL3版本,并支持 Windows (32位和64位)、 Linux (64位仅)和 macOS (64位仅)。
- The RLM license server software is available RLM 许可证服务器软件是可用的here (Windows 64-bit) 这里(Windows 64位), here (Windows 32-bit) 这里(Windows 32位), here (Linux 64-bit) 这里(linux64位), or ,或here (macOS 64-bit) 这里(macOS 64位).
- The bundles include both the generic RLM license server and the specific Redshift license daemon. 这些包包括通用的 RLM 许可证服务器和特定的 Redshift 许可证守护进程
- The Redshift license daemonfiles ( Redshift 许可证守护文件(redshift.set and 及redshift.opt) are also available separately )亦可单独购买here 这里 (not platform specific). Note that the Redshift license daemon requires RLM server v12.0 or higher. 注意,Redshift 许可守护进程需要 RLM 服务器 v12.0或更高版本
Additional information and troubleshooting help for RLM can be found on the RLM support site, including:
关于 RLM 的其他信息和故障排除帮助可以在 RLM 支持站点上找到,包括:
- A FAQ 常见问题 which addresses common issues with RLM license servers 它解决了 RLM 许可证服务器的常见问题
- A list of fixed issues 固定问题清单 and release notes 还有发行说明
- The 这个RLM License Administration Guide 许可证管理指南 (PDF) - a technical reference to setting up an RLM license server (PDF)-设置 RLM 许可证服务器的技术参考
MAC Address and License keys
MAC 地址和许可证密钥
To issue a Redshift license key for floating licenses, you need to provide the Ethernet address (also known as the "MAC Address" or "Host Id") and the host name of the computer you have designated as your license server. The MAC address is a 12 digit hexadecimal number. It can be displayed in a few different ways, for example bcaec524d7c9, BCAEC524D7C9 or BC-AE-C5-24-D7-C9.
要为浮动许可证颁发红移许可证密钥,您需要提供以太网地址(也称为“ MAC 地址”或“主机 Id”)和您指定为许可证服务器的计算机的主机名。MAC 地址是一个12位的十六进制数。它可以以几种不同的方式显示,例如 BCAEC524D7C9、 BCAEC524D7C9或 BC-AE-C5-24-D7-C9。
There is a MAC address for each network adaptor on your system, including "onboard" Ethernet adaptors (built into the machine's motherboard), Ethernet adapters plugged in to the PCI slots of the machine's motherboard and mobile USB network adaptors (Wi-Fi, Bluetooth, etc..).
系统上的每个网络适配器都有一个 MAC 地址,包括“板载”以太网适配器(内置在机器主板上)、插入机器主板 PCI 插槽的以太网适配器和移动 USB 网络适配器(Wi-Fi、蓝牙等等).
Using a mobile network device can often be the best choice as it allows you to easily move your floating licenses to a new license server machine if, for example, your server machine has a hardware failure.
使用移动网络设备通常是最佳选择,因为它允许您轻松地将浮动许可转移到新的许可证服务器机器,例如,如果您的服务器机器硬件故障。
Obtaining your license server's MAC address
获取您的许可证服务器的 MAC 地址
To obtain a list of MAC addresses on your Windows machine, open a command prompt and run the command getmac /v
or ipconfig /all
.
要获得 Windows 机器上的 MAC 地址列表,请打开命令提示符并运行命令 getmac/v 或 ipconfig/all。
If running getmac /v
the MAC address for each network adaptor is listed in the 3rd column. If running ipconfig /all
, the MAC address for each network adaptor is shown with the label Physical Address.
如果运行 getmac/v,则每个网络适配器的 MAC 地址列在第3列。如果运行 ipconfig/all,则每个网络适配器的 MAC 地址都显示为“物理地址”。
On Linux, use the command ifconfig
and look for output similar to:
在 Linux 上,使用命令 ifconfig 并查找类似于:
eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55 |
The mac address is the string of 6 pairs of 2 hexadecimal digits.
Mac 地址是由6对十六进制数字组成的字符串。
If you are unsure which network adaptor to use, simply run getmac /v (Windows) or ifconfig (Linux) and email a screenshot of the output to support@redshift3d.com and we will select an appropriate one for you.
如果您不确定要使用哪个网络适配器,只需运行 getmac/v (Windows)或 ifconfig (Linux) ,然后将输出的屏幕截图发送到 support@redshift3d. com,我们将为您选择一个合适的网络适配器。
Obtaining your license server's host name
获取许可证服务器的主机名
The command hostname
, available on Windows and Linux will print the host name of your machine.
在 Windows 和 Linux 上可用的命令 hostname 将打印机器的主机名。
Obtaining your license key
获取您的许可证密钥
Once you have obtained your MAC address, please send an email to support@redshift3d.com and include the MAC address along with your order number. You will receive a response which includes your license key as an attachment. You can expect a response within 1 hour during our normal business hours of 9AM to 8PM pacific time.
一旦你得到你的 MAC 地址,请发送电子邮件到 support@redshift3d. com,包括 MAC 地址和你的订单号码。您将收到一个响应,其中包括您的许可证密钥作为附件。您可以期待在1小时内回应在我们的正常营业时间上午9时至晚上8时太平洋时间。
Setting up your license server
设置您的许可证服务器
System Requirements
系统需求
The machine you designate as your license server must meet the following requirements:
您指定为许可证服务器的机器必须满足以下要求:
- All client workstations and render nodes which will be rendering with Redshift must be able to connect to the license server via TCP/IP. 所有客户端工作站和呈现节点都必须能够通过 TCP/IP 连接到许可证服务器
- The license server can run on Windows (XP, 7, 8 or 10) 32-bit or 64-bit, Linux 64-bit or macOS 64-bit. 许可证服务器可以在 Windows (XP,7,8或10)32位或64位、 Linux 64位或 macOS 64位上运行
- The license server must be a physical machine, not a virtual machine. 许可证服务器必须是物理机器,而不是虚拟机
Installing the RLM license server
安装 RLM 许可证服务器
Download the Redshift license server bundle here (Windows 64-bit), here (Windows 32-bit), here (Linux 64-bit), or here (macOS 64-bit). Extract the files from the bundle and move them to a folder on your license server machine. The location of the folder is not important.
在这里(Windows 64位)、这里(Windows 32位)、这里(Linux 64位)或这里(macOS 64位)下载 Redshift 许可证服务器包。从捆绑包中提取文件,并将其移动到许可证服务器机器上的文件夹中。文件夹的位置并不重要。
Installing your license key
安装您的许可证密钥
Place the license key file you receive from Redshift support to the same folder that contains the extracted RLM server bundle files on your license server. This is the folder that contains the rlm executable (rlm.exe).
将您从 Redshift 支持中接收到的许可密钥文件放到许可服务器上包含解压缩的 RLM 服务器包文件的同一文件夹中。这是包含 rlm 可执行文件(rlm.exe)的文件夹。
Starting the RLM license server
启动 RLM 许可证服务器
The license server can be run from the command-line, or can be set up to run as a windows service so that it automatically starts when you boot your server. Running from the command-line is convenient for testing, but we recommend running the RLM server as a service once it's been confirmed to be working.
许可证服务器可以从命令行运行,也可以设置为作为 windows 服务运行,以便在引导服务器时自动启动。从命令行运行非常方便进行测试,但是我们建议在确认 RLM 服务器正常工作后将其作为服务运行。
Running the RLM license server from the command line
从命令行运行 RLM 许可证服务器
From the command-line, change directory to the folder which contains the Redshift RLM server files.
在命令行中,将目录更改为包含 Redshift RLM 服务器文件的文件夹。
pushd C:\redshift_rlm |
Run the license server executable, specifying the log folder.
运行许可证服务器可执行文件,指定日志文件夹。
rlm -dlog rlm.log |
Running the RLM license server as a Windows service
将 RLM 许可证服务器作为 Windows 服务运行
Installing a service usually requires administrative privileges. Open a command-prompt as Administrator. From the command-line, change directory to the folder which contains the Redshift RLM server files.
安装服务通常需要管理特权。以管理员身份打开命令提示符。在命令行中,将目录更改为包含 Redshift RLM 服务器文件的文件夹。
pushd C:\redshift_rlm |
Then run the following command to tell the rlm server to install itself as a service.
然后运行以下命令,告诉 rlm 服务器将自身安装为服务。
rlm -install_service -service_name RLM-Redshift -dlog +rlm.log |
You must then start the RLM-Redshift service (only required the first time).
然后,您必须启动 RLM-Redshift 服务(只需要第一次)。
net start RLM-Redshift |
Customizing the license server port
自定义许可证服务器端口
The RLM license server uses port 5053 by default. You can change the default port by editing your license file, then restarting the RLM server.
RLM 许可证服务器默认使用端口5053。您可以通过编辑许可证文件,然后重新启动 RLM 服务器来更改默认端口。
The example license file below has modified the RLM server port to 5055.
下面的示例许可证文件将 RLM 服务器端口修改为5055。
HOST localhost 0BABE00BABE0 5055 ISV redshift LICENSE redshift redshift-core 2014.01 permanent 1 share=h min_timeout=120 start=1-jan-2014 customer=00001 issued=1-jan-2014 replace _ck=acdabe28ba ig="c2N25465jtQi~5Ar=9X01G7Y3WDnqCIc0ihvHoGFc K6be~3eqa+RM1szUTU+Zg" |
Serving Redshift licenses from an existing license server
从现有许可证服务器提供 Redshift 许可证
If you are already running an RLM license server on your network for another software package, you may be able to configure it to serve your Redshift licenses. Redshift will not work with RLM server versions before v10.0BL2.
如果您已经在网络上为另一个软件包运行了一个 RLM 许可证服务器,那么您可以将其配置为红移许可证服务。在 v10.0 BL2之前,红移不能用于 RLM 服务器版本。
If your existing server meets these requirements, simply copy redshift.set and redshift.opt (available here and also including in the RLM license server bundles) along with your license key to the same folder that contains the existing rlm.exe, then restart the RLM server.
如果您的现有服务器满足这些要求,只需将 redshift.set 和 redshift.opt (这里可用,也包括在 RLM 许可证服务器包中)与您的许可证密钥复制到包含现有 RLM.exe 的同一个文件夹中,然后重新启动 RLM 服务器。
Setting up your client machines
设置客户机
Workstations and render nodes are referred to as clients for the purposes of licensing. You must configure each client machine so that it can find the license server and checkout licenses.
出于许可的目的,工作站和呈现节点被称为客户机。您必须配置每个客户机,以便它能够找到许可证服务器和签出许可证。
Option 1 - Environment Variables
备选方案1- 环境变数
You can configure your client machines to find the license server by defining an environment variable redshift_LICENSE (note that the lowercase 'redshift' is important). This environment variable will specify the hostname or ip address of the license server as well as the port number using the syntax port@hostname or port@ip-address. The default port for the RLM server is 5053, but can be customized if necessary (for example to prevent conflicts with other RLM license servers running on the same machine). See Customizing the license server port above for more details.
你可以配置你的客户端机器通过定义一个红移/许可证来找到许可服务器(注意小写的‘红移’很重要) ,红移/环境变量/许可证。该环境变量将使用语法 port@hostname 或 port@ip-address 指定许可证服务器的主机名或 ip 地址以及端口号。RLM 服务器的默认端口是5053,但是如果需要,可以进行自定义(例如,为了防止与运行在同一台计算机上的其他 RLM 许可证服务器发生冲突)。有关详细信息,请参阅上面的自定义许可证服务器端口。
For information on how to set up environment variables on macOS, please see this thread: https://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x
有关如何在 macOS 上设置环境变量的信息,请参阅以下 https://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x :
The method that works best for most Redshift users is the "envpane" one.
对于大多数红移用户来说,最有效的方法是“ envpane”。
Option 2 - Client License File
选项2-客户端许可证文件
An alternative to the environment variable method above is to use a client license file. The license file is a simple text file named redshift.lic
containing a single line of the form:
上面提到的环境变量许可证方法的另一种选择是使用客户端许可证文件。许可文件是一个名为 redshift.lic 的简单文本文件,其中包含一行表单:
HOST <hostname> ANY <port> |
where <hostname> is the hostname or ip address of the license server and <port> is the RLM license server port.
其中 < hostname > 是许可证服务器的主机名或 ip 地址,< port > 是 RLM 许可证服务器端口。
For example, if your license server hostname is myrlmserver and you are using the default port 5053, your client license file would look like:
例如,如果您的许可证服务器主机名是 myrlmserver,并且您使用的是缺省端口5053,那么您的客户机许可证文件看起来像:
HOST myrlmserver ANY 5053 |
The license file should be placed in the License Path on each client machine. By default this is C:\ProgramData\Redshift\ on Windows and ~/redshift/ on Linux and macOS.
许可证文件应该放在每台客户机的许可证路径中。默认情况下,Windows 上的 c: ProgramData Redshift,Linux 和 macOS 上的 ~/Redshift/。
The RLM Web Server
网络服务器
The RLM server provides a web based interface for license server administration.. The web server is started automatically when rlm.exe is running. By default, the web server listens on port 5054. To use the web interface, simply point your web browser to *http://localhost:5054* on the license server.
RLM 服务器为许可证服务器管理提供了一个基于 web 的界面。.当 rlm.exe 运行时,web 服务器会自动启动。默认情况下,web 服务器监听端口5054。要使用网页界面,只需将你的网页浏览器指向许可证服务器上的 http://localhost:5054* 。
赶快留个言打破零评论!~