This topic shows you how to mount PolarDB Agent LakeBase on an ECS instance.
For a production environment, we recommend deploying using SidecarSet. Mounting on an ECS instance is suitable for non-containerized deployment or for testing and verification purposes.
Download the client
wget https://lakebase-client.oss-cn-beijing.aliyuncs.com/lakebase-client-latest(optional)Enable SSL
If you use PolarDB Agent LakeBase in a sandbox-like environment, we recommend that you enable SSL to enhance security and prevent network injection attacks.
Turning SSL on or off restarts the backend service. Perform this operation during off-peak hours.
On the details page of the destination cluster in the PolarDB console, click the AI Cache tab, click the destination PolarDB Agent LakeBase instance to open its details page, and then click the SSL Settings tab.
In both the Primary Endpoint card and the Cluster Endpoint card, turn on the SSL Status switch. The SSL status changes from Off to On. Both addresses share the same certificate.
Wait until the SSL status becomes On.
Click Download.
Extract the downloaded certificate archive.
Rename the .pem file to
ca.pem.
Place the certificate in the directory where the PolarDB Agent LakeBase binary is located.
NoteWhen PolarDB Agent LakeBase is mounted with
ca.pem, make sure that SSL is enabled in the console.
Mount
Run the following command to mount PolarDB Agent LakeBase. Replace the placeholders in the command with your actual values.
You must run the mount command as the root user or another account with FUSE mount permissions.
Placeholder | Description |
| Find the MetaURL on the Basic Information page of your PolarDB Agent LakeBase instance. |
| The directory for the mount point. For example, |
| Optional. The relative or absolute path to a subdirectory within the LakeBase root directory. For example, |
sudo ./lakebase-client-latest mount <META_URL> <MOUNT_POINT> --subdir=<SUB_DIR> -dIf you do not need to mount a subdirectory, remove the --subdir=<SUB_DIR> parameter. In this case, all directories and files in the LakeBase root directory are visible in the current environment.
Verify the mount
After the mount completes, access the specified mount point to verify that you can read data from PolarDB Agent LakeBase.
ls <MOUNT_POINT>