V
V
Vladislav Malikov2018-05-22 21:56:57
Network administration
Vladislav Malikov, 2018-05-22 21:56:57

Optimal VDS and settings for a YII2 project?

I have a project, it brings good profit, the project is large online, the project was written entirely in YII2
The total number of unique users per day is 5.000-10.000
On the project, users perform many complex actions, the architecture of the application is similar to a clothing ordering site.
With updating orders and statuses via CRON
It is necessary to determine which server will be suitable for my project.
In general, the variations are
1. Intel I7-6700K 4c/8t 4GHz /4.2GHz 64GB DDR4 2400 MHz 1x480GB SSD
Or
2. Intel Xeon E5-1630v3 4c/8t 3.7GHz /3.8GHz 32GB DDR4 ECC 2133 MHz SoftRaid 2x480GB SSD
Or
3 .Intel Xeon E5-1650 6c/12t 3.2GHz /3.8GHz 64GB DDR3 ECC 1600MHz SoftRaid 2x3TB SATA
I ask knowledgeable people to also write -
Which web server is better to install?
nginx/apache/nginx in conjunction with apache/
Which OS is better to install?
debian/ubuntu/centos
Also, is it necessary to place the database on a third-party server, will there be any advantage in this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alex maslakoff, 2018-05-24
@whytonycash

From OS I advise Arch Linux. Someone says "ah, you're a pervert."
But, in fact - Arch is a good distribution kit, it's easier for ubuntu and it's always good. I've been using the server for a couple of years. There's a new version of something out - it's probably already in Arch firsthand. Whereas for Ubuntu you will have to wait for someone to scratch it up to upload it to the apt repository, then you will need to add this repository to your list and you will also need to make sure that the author does not abandon it later. And still, then something will not come together.
Or go and collect from source.
From hosting with Arch, I advise Vultr or Linode:
vultr - https://nullurl.xyz/UnqgC4CN
linode - https://nullurl.xyz/DSgVK74w
Vultr is better in the sense that it has a location in Amsterdam. Linode doesn't have Amsterdam.
There is no Arch on DigitalOcean and you can't seem to install it even with the help of hacks.
If you think that Arch is not needed, then DigitalOcean will be suitable as a hosting.
Apache vs nginx - I recommend nginx.
Where to keep the base - I would not bother and keep it on the same server and make backups and merge them to different places.

M
Mysterion, 2018-05-23
@Mysterion

The second option will fit well, but so will the first, but it is less reliable.
The web server is better than nginx. php-fpm interpreter.
OS is better than the one you know best.
If you don't know everything well, then debian.
It is better to place a DB on the same server. Moreover, there is enough RAM and you can put a lot in the buffer.
A database on a third-party server is good, provided that the server is more productive there, the disk is faster, there is more memory.

P
Puma Thailand, 2018-05-23
@opium

It is better to take with ssd
In general, the first two options are almost identical to
Nginx plus php fpm OS , of
course, to ubuntu 18.04

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question