Buying and Connecting to a GeminiDB Influx Instance
This section describes how to buy a GeminiDB Influx instance and uses a Linux ECS as an example to describe how to connect to the instance over a private network.
Buying a GeminiDB Influx Instance
- Log in to the Huawei Cloud console.
- In the service list, choose Databases > GeminiDB.
- On the Instances page, click Buy DB Instance.
- Click Buy DB Instance, select a billing mode, and configure instance parameters. Then, click Next and complete subsequent operations.
Figure 1 Basic informationFigure 2 Selecting specificationsFigure 3 Network settingsFigure 4 Setting a password
- View the purchased GeminiDB Influx instance.
Figure 5 Available instance
Buying an ECS
- Log in to the Huawei Cloud console.
- In the service list, choose > . On the Elastic Cloud Server console, click Buy ECS.
- Configure basic settings and click Next: Configure Network. Make sure that the ECS is in the same region, AZ, VPC, and security group as the GeminiDB Influx instance you created.
Figure 6 Basic settingsFigure 7 Selecting specificationsFigure 8 Selecting an image
- Configure the network and click Next: Configure Advanced Settings. Make sure that the ECS is in the same VPC and security group as the GeminiDB Influx instance.
- If security group rules allow access from the ECS, you can connect to the instance using the ECS.
- If the security group rules do not allow access from the ECS, add an inbound rule to the security group.
Figure 9 Network settingsFigure 10 Selecting an EIP - Configure a password for the ECS and click Next: Confirm.
Figure 11 Advanced settings
- Confirm the configurations and click Submit.
Figure 12 Confirming the configurations
- View the purchased ECS.
Connecting to the GeminiDB Influx Instance
- On the ECS console, log in to the ECS using the remote login option.
Figure 13 Remote login
- Enter the username and password of the ECS.
Figure 14 Entering the username and password
- Obtain the x86 or Arm InfluxDB client.
Download the x86 or Arm InfluxDB client and upload the InfluxDB client installation package to the ECS.
- Decompress the client tool package (the x86 client is used as an example).
tar -xzf influxdb-1.8.10_linux_amd64.tar.gz
- Connect to your instance in the directory where the InfluxDB client is located.
- Run the following command to go to the InfluxDB directory:
cd influxdb-1.8.10-1/usr/bin
- Connect to the GeminiDB Influx instance.
./influx -ssl -unsafeSsl -username '<DB_USER>' -password '<DB_PWD>' -host <DB_HOST> -port <DB_PORT>
Example:
./influx -ssl -unsafeSsl -username 'rwuser' -password '<DB_PWD>' -host 192.xx.xx.xx -port 8635
Table 1 Required description Parameter
Description
<DB_USER>
Username of the administrator account. The default value is rwuser.
On the Instances page, locate the instance and click its name. In the DB Information area on the Basic Information page, you can find the administrator username.
<DB_PWD>
Administrator password
<DB_HOST>
Load balancer address of the instance to be connected.
Connecting to an instance using a load balancer address is now in OBT. To use it, choose Service Tickets > Create Service Ticket in the upper right corner of the console and contact the customer service.
Scenario 1:
If you have obtained a load balancer address before creating an instance, you can view that the load balancer address is selected by default on the instance creation page.
After the instance is created, click its name to go to the Basic Information page and obtain the load balancer IP address in the Network Information area.
Scenario 2:
To use a load balancer address after the instance is created, choose Service Tickets > Create Service Ticket in the upper right corner of the console and contact the customer service.
Then you can click the instance name to view the load balancer IP address in the Network Information area on the Basic Information page.
<DB_PORT>
Port for accessing the instance.
Click the name of the instance to go to the Basic Information page. In the Network Information area, you can find the database port.
- Run the following command to go to the InfluxDB directory:
- If information similar to the following is displayed, the connection was successful.
Connected to https://host:port version x.x.x InfluxDB shell version: 1.8.10 >
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot