The First Virtual Data Center
Here you can see an example of what your first virtual data center could look like. A web server environment with a database will be created.
Setting Up the Virtual Data Center
First, a new virtual data center is created with a name and a description. The most important setting here is the ProfitBricks physical data center region (Frankfurt am Main, Karlsruhe, Las Vegas, and Newark (NJ)), in order to set up your infrastructure in an exact geo location.
Drag two servers, two storages and an internet access into the Workspace by drag and drop.
Creating Network and Storage Connections
The storages are then each connected to a server by connection lines.
A public and a private network will be provisioned. Connect Server 1 to the first network interface with internet acess for the public network. Server 1 thus gets an internet connection and becomes the gateway. Then pull a second network interface from Server 1 and connect it to Server 2. This becomes a private network between Servers 1 and 2.
Set Up Images and Boot Drive
Rename the Storage element connected to Server 1 "Apache2" and increase it to 30 GB. Choose the Linux Debian image from the ProfitBricks standard images and rename the Storage element for Server 2 to "DebOS". Increase its storage amount to 20 GB. Attach a further Storage element (with the name "MySQL") to Server to and increase the storage amount to 250 GB.
Under "Properties" select the boot device as "Apache" for Server 1 and "DebOS" for Server 2.
Configure the Server
Rename the servers as follows:
- Server 1: "WebServer", and
- Server 2: "DatabaseServer".
Change the configuration of the Web server to 2 cores of CPU type "AMD" and 4 GB RAM.
Configure the DatabaseServer with 4 cores of CPU type "Intel®" and 8 GB RAM, so that there's enough capacity for the MySQL database. Each Intel® core consists of two Intel® hyper-threads, which are treated and displayed as two logical cores by your operation system. That's why in this example four Intel® cores make eight CPUs in total.
NOTE: Please note that due to technical restrictions it is possible that a newly provisioned server based on a ProfitBricks Windows image won't start because its RAM size cannot be processed properly upon initial configuration.
We recommend setting the intial RAM size to 8 GB. Once configured, you can adjust it anytime.
Deleting a Data Center
In order to delete a data center and its entire virtual infrastructure, do the following:
- Log in to the Data Center Designer.
- Open the data center that you want to delete (Data Center > My Data Centers)
- In the Inspector window, click Delete.
- The Delete Data Center dialog box opens.
- Activate the checkbox.
- Enter your password.
- Confirm that you want to delete the selected data center by clicking Delete Data Center.
The selected data center has been deleted and cannot be restored.