This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Database management with VCluster UI

Database management with VCluster UI

The VCluster UI is a tool for administering a single database. This tool is bundled with OpenText™ Analytics Database installations. VCluster UI works with the VCluster CLI to manage your database. It works with both the EON and Enterprise database types.

Setting up VCluster UI

Setting up the VCluster UI for your system depends on whether you already have a database set up and how you created your database: AdminTools or VCluster CLI. Use the section below that corresponds to your setup:

Configure VCluster server

To setup VCluster UI and create a new database:

  1. Start the node management agent on all of the nodes:

    $  /opt/vertica/bin/manage_node_agent.sh start node_management_agent
    

    Here is an example script that can be used to start the node management agent on multiple nodes:

    for x in 10.20.71.10 10.20.71.11 10.20.71.12 10.20.71.13; do echo "host is $x"; ssh $x /opt/vertica/bin/manage_node_agent.sh 
    start node_management_agent; done;
    
  2. Start the VCluster service on one of the hosts (this is the host that you will connect to in order to use VCluster):

    $  /opt/vertica/bin/manage_vcluster_server.sh start vluster_server
    

    This will create a certificate for the UI that you need to import into your browser.

  3. Navigate to /opt/vertica/config/vcluster_server and download the admin.p12 certificate to the local machine where you intend to access the VCluster Web UI.

  4. In a browser, import the certificate by going to Settings > Manage Certificate and add the admin.p12 certificate. The password for the default certificate is vertica.

  5. Launch the VCluster Web UI by navigating to https://<hostname>:8665. When prompted, select the certificate that you just imported and click OK.

  6. Click the link in the Dashboard to create your database.

VCluster UI create database

Create a database from VCluster UI

  1. After you click the link to create a database, you are directed to the Create Database page.
  2. Choose Eon or Enterprise as the database type. The available fields change based on your selection.
  3. Specify the details of your database.
  4. Click Create.
  5. In the Job Satus page, you can view the status of your new database.
  6. Continue with Accessing the VCluster UI.

Access existing database from VCluster UI

Follow these steps if your database was created using the VCluster CLI:

  1. Start the node management agent on all of the nodes:

    $  /opt/vertica/bin/manage_node_agent.sh start node_management_agent
    

    Here is an example script that can be used to start the node management agent on multiple nodes:

    for x in 10.20.71.10 10.20.71.11 10.20.71.12 10.20.71.13; do echo "host is $x"; ssh $x /opt/vertica/bin/manage_node_agent.sh 
    start node_management_agent; done;
    
  2. Start the VCluster service on one of the hosts (this is the host that you will connect to in order to use VCluster):

    $  /opt/vertica/bin/manage_vcluster_server.sh start vluster_server
    

    This will create a certificate for the UI that you need to import into your browser.

  3. Navigate to /opt/vertica/config/vcluster_server and download the admin.p12 certificate to the local machine where you intend to access the VCluster Web UI.

  4. In a browser, import the certificate by going to Settings > Manage Certificate and add the admin.p12 certificate. The password for the default certificate is vertica.

  5. Launch the VCluster Web UI by navigating to https://<hostname>:9090. When prompted, select the certificate that you just imported and click OK.

  6. The VCluster Web Server leverages an embedded HTTPS service, which requires TLS authentication for secure access. Run the following to enable TLS:

    vsql -c "create authentication tls_for_all method 'tls' host tls '0.0.0.0/0';" 
    vsql -c "grant authentication tls_for_all to public;"
    
  7. Continue with Accessing the VCluster UI.

Migrate your database from AdminTools to VCluster UI

Follow these steps if your database was created using AdminTools:

  1. Start the node management agent on all of the nodes:

    $  /opt/vertica/bin/manage_node_agent.sh start node_management_agent
    

    Here is an example script that can be used to start the node management agent on multiple nodes:

    for x in 10.20.71.10 10.20.71.11 10.20.71.12 10.20.71.13; do echo "host is $x"; ssh $x /opt/vertica/bin/manage_node_agent.sh 
    start node_management_agent; done;
    
  2. Run the following script to convert the database configuration to be compatible with VCluster:

    /opt/vertica/bin/vcluster manage_config recover --db-name migrate_to_vcluster --hosts <list of node IP address separated by commas> --catalog-path /scratch_b/disk_a  --depot-path /scratch_b/disk_a
    
  3. Start the VCluster service on one of the hosts (this is the host that you will connect to in order to use VCluster):

    $  /opt/vertica/bin/manage_vcluster_server.sh start vluster_server
    

    This will create a certificate for the UI that you need to import into your browser.

  4. Navigate to /opt/vertica/config/vcluster_server and download the admin.p12 certificate to the local machine where you intend to access the VCluster Web UI.

  5. In a browser, import the certificate by going to Settings > Manage Certificate and add the admin.p12 certificate. The password for the default certificate is vertica.

  6. Launch the VCluster Web UI by navigating to https://<hostname>:9090. When prompted, select the certificate that you just imported and click OK.

  7. Continue with Accessing the VCluster UI.

Access VCluster UI

To access VCluster UI, navigate to https://<hostname>:8665 using the server IP of the database host where you started the VCluster service. You are prompted to select the server certificate you imported to your browser previously.

Understanding VCluster UI

VCluster UI dashboard

  • OpenText™ Analytics Database version information: Displays the current version of the database.

  • Help: Access the VCluster UI documentation and swagger documentation.

  • Left navigation: Shows the available pages and highlights the current page.

  • Landing page: Displays the different tiles to manage your database.

1 - Dashboard

VCluster UI Dashboard page

The VCluster UI Dashboard is the default landing page of the interface. It provides quick access to health metrics and other key sections allowing you to navigate and manage your database efficiently.

VCluster UI dashboard

Access Health Metrics

  1. Click Health Metrics. The Connect Vcluster to Prometheus modal appears.

  2. Provide OpenText™ Analytics Database's embedded HTTPS server port number and click Start Prometheus. The default is 8443.

  3. Click Accept to authorize the Prometheus connection.

  4. Click Confirm. VCluster is now connected to Prometheus to scrape metrics.

    You will be directed to the Dashboard which displays health metrics such as CPU Usage by Node, Memory Usage by Node, Disk I/O Usage by Node, and Free Disk Space by Node. Click any chart to open a modal where you can filter by time and node.

  5. You can set the Refresh Interval to automatically update the health charts at your preferred frequency.

  6. Click Other Health Data to access Health Watchdog and Cluster Health pages.

  7. Clicking Health Metrics keeps the dashboard in health metrics view during your browser session. To go back to the default dashboard, click Stop Health Metrics and then click Confirm.

VCluster UI dashboard metrics

2 - Subcluster

VCluster UI Subcluster page

The VCluster UI Subcluster page displays a list of your subclusters and the number of nodes in each subcluster. You can also add, remove, start, stop, sandbox, and unsandbox subclusters.

VCluster UI subcluster page

Node Details for a subcluster enables you to view the node name, address, state, catalog path, and primary node.

3 - Database

VCluster UI Database page

The Database page shows you the name of your database along with the nodes, IP Address, and status. You can also view more details for each node such as node name, catalog path, data path, depot path, and communal storage location.

VCluster UI database page

The following options are available on this page:

  • Start Database

  • Stop Database

  • Re-IP Database

  • Drop Database

  • Revive Database: You will not see this option if a database already exists.

  • Additional Options: Include Upgrade License and Manage Packages.

    • The Upgrade License option enables you to choose your license file and upgrade to it.

    • The Manage Packages option enables you to install or uninstall pacakges. It lists all the packages that are installed or uninstalled. You will be directed to the Job Status page when you install or uninstall packages.

4 - Nodes

VCluster UI Nodes page

The Nodes page shows you all of your database nodes. You can add, remove, start, and stop nodes on this page.

VCluster UI nodes page

5 - Job Status

VCluster UI Job Status page

The Job Status page shows you the status of your database jobs and the Workload Replay captures and replays:

Database

VCluster UI job status database page

Database shows you the status of jobs from the Database, SubCluster, and Nodes pages. This includes adding a node or subcluster, changing the IP of the database, creating the database, and the other options.

Workload Replay

VCluster UI job status workload replay page

6 - Workload Replay

VCluster UI Workload Replay page

The Workload Replay page lets you view your database workload by viewing database queries and how long they take.

VCluster UI workload replay page

This page is used for the following:

  • Evaluating the performance of a new database version before deploying it to the production environment.

  • Assessing changes to the system configuration or test the database with new knobs or code changes.

  • Assessing the performance of upgrading hardware components or switching to a different operating system.

It uses three tabs to help you perform the assessment: Capture Workload, Replay Workload, and Reports.

Capture

VCluster UI workload replay capture

Capture is used to capture a query or multiple queries to see their performance. You specify a start and stop timestamp when the query/queries you want to capture were run. Then click Capture Worload to capture the query/queries. You are redirected to the Job Status > Workload Replay page to see the status of the capture. The job name will be capture-workload and once the status shows successful you can replay the workload. You need to note the file path for the capture job to run the replay.

Replay Workload

VCluster UI workload replay workload

After running a capture, Replay Workload is used to compare the first query run time with a new query run time. Select a sandbox from the dropdown to use for the replay. If no sandbox is present in the dropdown, you can create a sandbox using Create sandbox. You need to know the file path from the Job Status > Workload Replay page to select the capture you want to run against. Select that in the Workload File drop down. In the Sandbox drop down, select the sandbox you are using for the replay, then click Replay Workload. You are redirected to the Job Status > Workload Replay page to see the status of the capture.

VCluster UI job status workload replay

The job name will be replay-workload and once the status shows successful you can replay the workload. You need to note the file path for the replay job to run the report.

If you want to cancel the replay that is running, hit the Cancel Replay Workload button.

Reports

VCluster UI workload replay reports

After running the replay, Reports lets you view the query/queries from both the capture and the replay side by side. In the Workload Replay Report File, make sure the replay file you want to view is selected. It can be found on the Job Status > Workload Replay page. You can see a chart of the original time and the replay time which can be customized to how you want to view it. Scrolling down also shows you a table of the results.

7 - Cluster Health

VCluster UI Cluster Health page

The Cluster Health page lets you monitor the health of your database. There are three sections on this page:

  • Event Detailed Info - displays the details of an event if you click on it in the Slow Event Duration Over Time chart. You can click on the event details to see additional details about the event.

  • Events Statistics - displays the number of slow events, the longest and average event time, and lets you run a manual slow event check over a specified time period.

  • Slow Event Duration Over Time - displays the events from the preview day, 7 days, or 30 days (per your selection) in a chart.

VCluster UI healh page

8 - Health Watchdog

VCluster UI Health Watchdog page

The Health Watchdog page lets you monitor your database using Health Watchdog. It displays the health of your database and mergeout queue size, lets you set configuration parameters for your database, and view blocked transactions.

Database Status

VCluster UI health watchdog database status

The Database Status page shows you your cluster state and has charts to track the different health metrics. You can set the chart to display recently elapsed time window or for a fixed time range.

Configuration Parameters

VCluster UI health watchdog configuration parameters

The Configuration Parameters page lets you configure the health metrics for your database. It displays the current value for the health metric and lets you input new values if you need to adjust your settings. You can also select whether transactions are blocked or not.

Blocked Transactions

VCluster UI health watchdog blocked transactions

The Blocked Transactions page lets you view any transactions that have been blocked and lets you cancel any transactions that you select.

9 - Certificate Management

VCluster UI Job Status page

The Certificate Management page shows you your certificate information and manage your certificates.

VCluster UI certificate management page

The following options are available to manage certificates:

  • Pending Certs list: Shows a list of the status of server and client certificates.

VCluster UI certificate management pending certificates

  • Issued Certs list: Shows a list of the issued certficates.

VCluster UI certificate management issue certificates

  • Revoked Certs list: Shows a list of the revoked certificates.

VCluster UI certificate management revoked certificates

  • Renew Server Cert: Lets you renew your server certificate.

VCluster UI certificate management renew certificates

  • Apply Client Cert: Use this option to apply for a client certificate.

VCluster UI certificate managment apply client certificate