Overview
All self-hosted Netskope One DSPM instances are shipped with an internal PostgreSQL database. Depending on the deployment’s scale, you may benefit from leveraging the AWS RDS service instead. This article outlines the steps for migrating your initial database to RDS.
These instructions only apply to self-hosted Netskope One DSPM instances running within AWS as EC2 instances, and they should only be executed at the direction of your assigned Customer Service Manager (CSM). These instructions do not apply to either:
- Self-hosted instances running as Docker containers, as they are already using RDS
- Netskope One DSPM-hosted tenants, as Netskope One DSPM manages it on your behalf.
Because your Netskope One DSPM instance will be unavailable during part of this process, we recommended you perform these instructions outside of normal business hours (such as during a pre-advertised maintenance window).
Configure New Database
Excerpt: AWS: Configure New Database
- Click this link to log into your AWS RDS Console, which will navigate you to the RDS service.
- Under Amazon RDS in the left-hand menu, navigate to Databases.
- The Databases screen is displayed.
- Click the Create database button.
- On the next screen, in the Engine options section, complete the following fields:
Section | Field | Value |
---|---|---|
Engine options |
Engine type |
PostgreSQL |
Version |
PostgreSQL 11.15-R1 |
|
Instance configuration |
DB instance class |
t3.2xlarge |
Storage |
Storage type |
General Purpose SSD (gp2) (unless advised differently by your CSM) |
Allocated storage |
50 (unless advised differently by your CSM) |
|
Connectivity |
Public access |
No, if this database resides in the same VPC as your Netskope One DSPM instance. Otherwise, Yes. |
VPC security group |
Select (or create) a security group which permits traffic from the Netskope One DSPM instance. |
|
Additional configuration > Database options |
Initial database name |
discovery |
With the exception of the above values which Netskope One DSPM requires to operate, the AWS RDS default values can be used, or your can override them as your business needs. This includes applying your own master user name, backup schedule, DB parameter groups, and availability & durability configurations.
- Make note of the Master username and master password values for later use.
- Click the Create database button.
- The Databases screen is displayed once again.
- For the new database, click its link in the DB Identifier column.
- In the Connectivity & security section, make note of the Endpoint value for later use.
Pause Netskope One DSPM Instance
- Log into your Netskope One DSPM instance’s UI.
- Navigate to Data Stores > Data Store Inventory screen.
- On the Connected tab, for each Data Store with an in-progress scan, click its Cancel Scan icon in the Actions column.
- Navigate to Support.
- Make note of your Netskope One DSPM instance version for later use.
- Using your CLI, SSH into your Netskope One DSPM instance.
- Stop your Netskope One DSPM instance by executing the command ./discovery/bin/discovery stop.
Export Initial Database
- Using your CLI, SSH into your Netskope One DSPM instance.
- Depending on your Netskope One DSPM instance’s version, set the following environment variables in your .bashrc file. Substitute {Endpoint}, {Master username} and {Master password} with the corresponding values from the Configure New Database section above.export Netskope One DSPM_DATABASE_HOST_OVERRIDE={Endpoint} export Netskope One DSPM_DATABASE_USER={Master username} export Netskope One DSPM_DATABASE_PASSWD={Master password}
- Execute the following commands in order:
Command | Outcome | Notes |
---|---|---|
|
Applies the environment variable updates |
None |
|
Export the initial database’s data | The export’s duration will vary depending on the amount of data present and may take up to an hour. Validate this activity is complete before continuing to the next step. |
Populate New Database
- Using your CLI, SSH into your Netskope One DSPM instance.
- Execute the following command. Substitute {Endpoint} and {Master username} with the corresponding value from the Configure New Database section above.
Command | Outcome | Notes |
---|---|---|
|
Imports the initial database’s data into the new database. | The import’s duration will vary depending on the amount of data present and may take up to an hour. Validate this activity is complete before continuing to the next step. |
Restart Netskope One DSPM Instance
- Using your CLI, SSH into your Netskope One DSPM instance.
- Restart your Netskope One DSPM instance by executing the command ./discovery/bin/discovery start.
- Log into your Netskope One DSPM instance’s UI.
- Navigate to Data Stores > Data Store Inventory screen.
- On the Connected tab, for each Data Store you wish to resume scanning, click its Run Scan icon in the Actions column.
At this point, you can free up space on your Netskope One DSPM instance by removing the initial database and export file. Use these commands to delete both:
dropdb -U postgres discovery
rm dump.sql