Report this

What is the reason for this report?

Setting up a database server on another droplet in VPC

Posted on May 3, 2020

Hi. I am currently running database and web server on single droplet, but because of site traffic increase, I am planning to put database on separate droplet with enough RAM, but there are some questions:

  1. I want my database server to be secured and accessed only by my application (web) servers. Is VPC (Private Networking) correct solution to this?

  2. Is it possible to remove public IP from database server, and make it isolated from outer network? If yes, then how can it be setup and administrated via ssh (because, well, ssh connection will be also blocked)?

  3. What IP my application/client should use to connect to database server, if they both will be added to VPC network?

  4. In general, are these steps correct for balancing the load and securing a database on other droplet?

Thanks in advance for any help regarding these questions.

P.S. If that helps, I am running Ubuntu / Node.js / Nginx / MongoDB.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.