Private deployment

更新时间:
复制 MD 格式

Private deployment lets you package and download a complete dashboard developed with DataV-Board 7.0. You can then install and run this dashboard on your corporate intranet. For example, if your corporate intranet has a database that is not accessible from the public network, an online dashboard cannot connect to it. Private deployment solves this problem.

Server configuration requirements for private deployment

The minimum system and hardware requirements are as follows:

  • A 64-bit Linux system compatible with CentOS 7.0

  • An 8-core, 4 GHz x86_64 or ARM64 processor, or one with equivalent performance

  • 16 GB of memory

  • At least 100 GB of disk space

  • Docker version 18.09.9 installed on the system

Limits

  • Only Premium Edition users can use the private deployment feature.

  • Private deployments do not include map tile data.

  • Private deployments support the following data source types: HTTP API, MySQL, SQL Server, Oracle, PostgreSQL, and static data.

    Note

    During a private deployment, the packaged dashboard retains its original data source type and related configurations.

Obtain a private deployment package

  1. Go to the DataV Product Purchase page and purchase the DataV Premium Edition.

  2. Log on to the DataV console.

  3. On the My Visualizations page, select a visualization application and click Edit.

  4. In the PC canvas editor, click the Download Page icon in the upper-right corner of the page.

    image

  1. In the Package Screen dialog box, follow the prompts to download the deployment package and the visualization application package.

    1. Click Deployment Package to go to the download page for the 7.x runtime environment deployment package.

    2. Important

      The runtime package is bound to your account. You can only deploy and run visualization applications that are downloaded from your Premium Edition or offline version account.

      The 7.x runtime environment consists of two parts: a deployment package and an authorization file named Key.

      • The 7.x deployment package supports both x86 and ARM architectures. Click Generate Deployment Package to generate a package for the corresponding architecture. This process takes about 10 minutes. After the package is generated, click Download Deployment Package to download it.

      • For offline version users, click Download Key to generate an authorization file with a unique user identity.

      • For Premium Edition users, after Step 2, you are automatically redirected to the User Center > Private Deployment panel. You can enter the machine code to generate a trial or official key.

    3. Click Packaging Records to go to the visualization application packaging page. Click Start Packaging to create a packaging task for the current screen. After the packaging is successful, click Download.

  2. Deploy the DataV service

    1. You can upload the downloaded runtime environment compressed package to your server.

    2. You can create a new folder on the server.

      For example, you can run the mkdir -p datav_runtime command to create a folder named datav_runtime.

    3. You can use the unzip command to decompress runtime.zip into the datav_runtime folder.

      unzip runtime.zip -d datav_runtime
      Note

      Make sure that you have downloaded runtime.zip to the current folder or that you know its path.

    4. Copy runtime.key to the datav_runtime folder.

      cp path/to/runtime.key datav_runtime/
      Note

      Make sure that the runtime.key file exists in the current folder or the specified path.

    5. You can start and check the service. By default, the service is stopped.

      Go to the datav_runtime folder and run the following commands:

      cd datav_runtime
      • Start the service

        ./datav start
        Note

        If you receive a "Permission denied" fault when you run ./datav start, you must grant execution permission. First, run chmod +x datav to modify the permission. Then, run ./datav start to start the program again.

      • Stop the service

        ./datav stop
      • Restart the service

        ./datav restart
      • Check the service status

        ./datav list
      • View the startup log

        ./datav logs <NAME> # You can get <NAME> by running ./datav list
      • View the operational log

        docker exec -it -w /home/admin/honeycomb/logs datav-service bash
    6. Modify the configuration

      You can create a config.yaml file in the ./datav folder. The optional configurations are as follows:

      DataDir: "" # The path where data is saved. The default is the current folder.
      MainPort: 7001 # The service port.

Reset password

Log on to the server and run the following command:

./datav start reset-password -- <UserName> [<Password>]
Note
  • <UserName>: The username for which you want to reset the password.

  • [<Password>]: An optional new password. If you do not specify this parameter, the password is reset to the default password.