Server Optimization

i got DA message here is detail maybe you get something fishy in it
what i am doing right now, i am blocking every ip which have more than 10 connections


his is an automated message notifying you that the 5 minute load average on your system is 13.42.
This has exceeded the 10 threshold.

One Minute - 11.27
Five Minutes - 13.42
Fifteen Minutes - 14.83

top - 08:02:28 up 127 days, 1:46, 1 user, load average: 11.27, 13.42, 14.83
Tasks: 326 total, 7 running, 232 sleeping, 0 stopped, 0 zombie
%Cpu(s): 26.5 us, 15.7 sy, 0.0 ni, 55.4 id, 0.0 wa, 0.0 hi, 0.0 si, 2.5 st
KiB Mem : 61627168 total, 30462764 free, 21282640 used, 9881764 buff/cache
KiB Swap: 1048572 total, 993992 free, 54580 used. 36582388 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1282362 root 20 0 934648 21116 16668 S 92.6 0.0 0:27.94 /usr/local/directadmin/directadmin taskq --syslog
1283422 smartqur 20 0 324832 34924 10928 R 74.1 0.1 0:00.37 lsphp:smartquranacademy.com/private_html/index.php
1283391 growcomp 20 0 329892 91368 10564 R 55.6 0.1 0:01.80 lsphp:p/domains/grow.com.pk/private_html/index.php
3447 root 20 0 849644 839680 2384 S 51.9 1.4 33260:31 /opt/netdata/usr/libexec/netdata/plugins.d/ebpf.plugin 1
2378 netdata 20 0 1424204 1.2g 4468 S 44.4 2.1 25353:03 /opt/netdata/bin/srv/netdata -P /opt/netdata/var/run/netdata/netdata.pid -D
3448 root 20 0 151440 130240 280 S 44.4 0.2 11041:45 /opt/netdata/usr/libexec/netdata/plugins.d/apps.plugin 1
1283384 toyotafo 20 0 375160 84208 11520 R 25.9 0.1 0:00.93 lsphp:omains/toyotafort.com/private_html/index.php
1283387 toyotafo 20 0 370552 80608 11520 R 25.9 0.1 0:00.86 lsphp:omains/toyotafort.com/private_html/index.php
1283401 toyotafo 20 0 350072 59432 11344 R 25.9 0.1 0:00.42 lsphp:omains/toyotafort.com/private_html/index.php
1283426 root 20 0 58560 4144 3336 R 7.4 0.0 0:00.09 /usr/bin/top -c -b -n 1
2698050 mysql 20 0 18.2g 14.7g 22120 S 7.4 25.1 1418:19 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
1238029 apache 20 0 5675596 258312 13460 S 3.7 0.4 0:37.10 /usr/sbin/httpd -DFOREGROUND
1 root 20 0 191300 5124 3540 S 0.0 0.0 679:34.93 /usr/lib/systemd/systemd --system --deserialize 23
2 root 20 0 0 0 0 S 0.0 0.0 0:39.56 [kthreadd]
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 [rcu_gp]
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 [rcu_par_gp]
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 [kworker/0:0H-ev]
9 root 0 -20 0 0 0 I 0.0 0.0 0:00.09 [mm_percpu_wq]
10 root 20 0 0 0 0 S 0.0 0.0 131:04.30 [ksoftirqd/0]
11 root 20 0 0 0 0 I 0.0 0.0 830:12.99 [rcu_sched]
12 root rt 0 0 0 0 S 0.0 0.0 1:56.11 [migration/0]
13 root rt 0 0 0 0 S 0.0 0.0 0:21.00 [watchdog/0]
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 [cpuhp/0]
I/O Information:
Total DISK READ : 0.00 B/s | Total DISK WRITE : 0.00 B/s
Actual DISK READ: 0.00 B/s | Actual DISK WRITE: 0.00 B/s
TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
1 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % systemd --system --deserialize 23
2 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kthreadd]
3 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_gp]
4 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_par_gp]
6 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/0:0H-events_highpri]
9 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [mm_percpu_wq]
10 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/0]
11 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [rcu_sched]
12 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/0]
13 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/0]
14 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [cpuhp/0]
15 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [cpuhp/1]
16 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/1]
17 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/1]
18 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/1]
20 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/1:0H-events_highpri]
21 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [cpuhp/2]
22 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/2]
23 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/2]
24 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/2]
905241 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % directadmin server --syslog
26 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/2:0H-events_highpri]
27 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [cpuhp/3]
28 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [watchdog/3]
29 rt/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [migration/3]
30 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [ksoftirqd/3]
32 be/0 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [kworker/3:0H-events_highpri]

Connection counts:
1 185.191.171.2
1 185.191.171.20
1 185.191.171.21
1 185.191.171.22
1 185.191.171.3
1 185.191.171.36
1 185.191.171.41
1 185.191.171.42
1 185.2.4.140
1 185.2.6.21
1 185.233.36.233
1 185.28.39.5
1 185.30.176.190
1 185.30.177.163
1 185.30.177.202
1 185.30.177.79
1 185.30.177.87
1 185.30.179.45
1 188.68.47.18
1 194.56.190.57
1 198.102.28.79
1 20.25.148.209
1 202.105.206.237
1 203.135.54.111
1 204.12.216.90
1 204.48.20.113
1 207.46.13.154
1 209.85.219.29
1 212.110.173.87
1 213.136.95.10
1 213.180.203.66
1 216.162.128.245
1 216.58.212.138
1 217.113.194.10
1 217.113.194.18
1 217.113.194.3
1 217.113.194.53
1 37.187.2.47
1 39.33.162.139
1 39.37.195.191
1 40.77.167.53
1 45.90.63.28
1 47.242.115.115
1 5.255.231.112
1 5.255.231.119
1 5.255.231.134
1 5.255.253.161
1 5.255.253.180
1 5.45.207.114
1 5.45.207.153
1 5.9.235.245
1 51.210.149.201
1 51.38.132.211
1 66.249.70.77
1 82.80.230.228
1 85.131.129.181
1 87.250.224.14
1 87.250.224.167
1 87.250.224.56
1 87.250.224.9
1 90.161.20.129
1 91.189.176.172
1 95.108.213.12
2 116.71.175.128
2 142.250.185.234
2 157.55.39.205
2 157.55.39.23
2 161.97.78.7
2 185.191.171.13
2 185.191.171.14
2 185.191.171.18
2 185.191.171.26
2 185.191.171.34
2 185.191.171.44
2 185.191.171.45
2 185.191.171.7
2 185.30.179.43
2 2.48.101.132
2 207.46.13.66
2 5.255.231.111
2 5.255.253.136
2 5.45.207.149
2 82.80.249.159
2 87.250.224.158
2 87.250.224.194
2 95.108.213.4
3 157.55.39.62
3 182.186.169.176
3 185.191.171.33
3 66.249.64.200
3 87.250.224.145
3 87.250.224.171
3 95.216.45.152
4 185.191.171.9
5 127.0.0.1
5 172.56.13.115
5 72.255.42.108
9 66.249.64.44
10 136.243.228.197
17 157.245.30.12

IP '157.245.30.12' currently has '17' connections

Connection info for '157.245.30.12':
tcp 0 0 161.97.78.7:50174 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50152 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50046 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50080 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50146 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50102 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50036 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50024 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50026 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:49992 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50006 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50108 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50042 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50068 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50092 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50082 157.245.30.12:443 TIME_WAIT
tcp 0 0 161.97.78.7:50098 157.245.30.12:443 TIME_WAIT

Top Memory Usage:
mysql 2698050 36.4 25.0 19129376 15456860 ? Sl Nov14 1418:19 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
clamscan 2444765 0.2 2.3 1902212 1425208 ? Ssl Oct25 98:25 /usr/sbin/clamd -c /etc/clamd.d/scan.conf
netdata 2378 13.8 2.1 1424204 1307696 ? Ssl Jul13 25353:04 /opt/netdata/bin/srv/netdata -P /opt/netdata/var/run/netdata/netdata.pid -D
root 3447 18.1 1.3 849644 839680 ? Sl Jul13 33260:32 /opt/netdata/usr/libexec/netdata/plugins.d/ebpf.plugin 1
apache 1238430 5.9 0.4 5872268 287836 ? Sl 07:30 1:53 /usr/sbin/httpd -DFOREGROUND
apache 1238029 1.9 0.4 5675596 258312 ? Sl 07:30 0:37 /usr/sbin/httpd -DFOREGROUND
root 3425065 0.1 0.3 415552 202088 ? Ss Nov11 14:44 /usr/sbin/httpd -DFOREGROUND
apache 1237827 0.5 0.3 415540 191392 ? S 07:30 0:10 /usr/sbin/httpd -DFOREGROUND
root 3448 6.0 0.2 151596 130240 ? R Jul13 11041:45 /opt/netdata/usr/libexec/netdata/plugins.d/apps.plugin 1
named 253608 0.4 0.2 845684 161276 ? Ssl Nov10 47:14 /usr/sbin/named -u named -c /etc/named.conf

Virtual Memory Info:
procs -----------------------memory---------------------- ---swap-- -----io---- -system-- --------cpu-------- -----timestamp-----
r b swpd free buff cache si so bi bo in cs us sy id wa st CET
12 0 54580 30401072 1464080 8417684 0 0 398 217 0 0 31 15 44 1 9 2022-11-17 08:02:29
8 0 54580 30332512 1464100 8412512 0 0 0 484 9230 14536 27 17 54 0 1 2022-11-17 08:02:30
9 0 54580 30326032 1464100 8412540 0 0 8 216 8121 12983 34 16 49 0 1 2022-11-17 08:02:31

Current MySQL Queries
577927 da_admin localhost information_schema Sleep 33 NULL
589435 toyotafo_wp851 localhost toyotafo_wp851 Sleep 0 NULL
589437 toyotafo_wp851 localhost toyotafo_wp851 Sleep 0 NULL
589440 growcomp_wp388 localhost growcomp_wp388 Sleep 0 NULL
589443 bebeauti_wp922 localhost bebeauti_wp922 Sleep 0 NULL
589444 qsntradi_wp988 localhost qsntradi_wp988 Sleep 0 NULL
589445 da_admin localhost NULL Query 0 starting SHOW FULL PROCESSLIST


================================
Automated Message Generated by DirectAdmin 1.645
 
looks like server not overloaded, there 55% IDle (free resources). and 2,5% st - (overselled VPS)
mysql-requests most sleep - so cant load server. There maybe something else. Also netdata can cause load too, it's better to keep separate server just for netdata.
 
what is use of it ? if i uninstall what will happen ?
overselled VPS
might be yes i have 450+ clients in this vps but what about people have 5000+ clients in single server and why i am not considering it oversell because its overloaded in this week it was running fine previously that's why i considered it clean then yes of course upgrade

This is VPS spex


10 vCPU Cores
60 GB RAM
400 GB NVMeor 1.6 TB SSD
4 Snapshots
32 TB TrafficUnlimited Incoming


and i have 450+ client with cloundlinux and DA

what if i upgrade to this dedicated server


24 GB
Intel Core i7 970 (6 x 3.20 GHz)
1 x 80 GB SSD (boot)
1 x 2 TB HDD100 Mbit/s

there is another server as well which have little difference between cpu Ghz

24 GB
Intel Core i7 980 (6 x 3.33 GHz)
1 x 80 GB SSD (boot)
1 x 2 TB HDD100 Mbit/s


questions is
1. how much clients i can hold in this new server
2. how much difference between these both two new servers because both have little difference in prices as well
3. it have just 80GB SSD so is it okay because i have installed CSF/Cloudlinux/Directadmin and maybe some other useful stuff like cache etc.

Thank you very much for your all efforts and time
 
I mean not you overselled it - you just using it as shared hosting. I mean datacenter who sold it to you - overselled their server, that's why it shows ST bigger than 0 - it means in this moment some another VPS at this node using 2,5% of your resources.
-----
provided dedicated server too old and potentially unstable, they all desktop with 12+ years hardware.
if you want dedicated server - look for at least hardware not older than 5 years (at least xeon v4 for dual processor, or xeon scalable for single CPU, or AMD EPYC 2gen or 3gen) if desktop hardware - intel 10-12gen, at least 8 gen, or ryzen 3/5 gen.
-----
you can't count clients just by hardware - because there can be 1000 landing pages with 2core cpu, or one woocommerce project that uses 48 cores and 256RAM. With cloudlinux you can sort average load from all accounts and find who makes most load, then make deep analytics which requests/scripts/plugins optimize it and keep living with small load. Or you can collect such not optimized clients and pay for more and more powerfull hardware (some projects easier to increase hardware than pay programmer to optimize it) its only your way/choice.
 
they all desktop with 12+ years hardware
Yes, but in calculation it's better for sale like i am getting it in $65 and new server i am getting in $200 almost so i will buy 2 old servers and can hold almost double users
what do you think ?
 
CX51
vCPU
8Intel
RAM32 GB
Disk space240 GB
Traffic20 TB
IPv4
Locations
€ 0.0653 / hr€ 39.15 / mo
€40 + €107.32 =almost $111 with 2 TB

contabo
$40.49 / month
10 vCPU Cores
60 GB RAM
1.6 TB SSD
4 Snapshots
32 TB Traffic Unlimited Incoming

you can see why contabo, more CPU and more RAM more storage
so its $41 vs $111
what do you say ?
 
I would say check servers like here on Hetzner.

CPUIntel Core i7-6700
  • 2 x 4.0 TB Enterprise HDD
  • IPv4
  • iNIC
General
  • Server AuctionID: 1879295
  • Traffic: unlimited
Information
  • 4 x RAM 16384 MB DDR4 (64 GB)
  • 2 x HDD SATA 4,0 TB Enterprise
  • NIC 1 Gbit - Intel I219-LM
Support services
  • replacement of defective hardware
  • free email support
fixed price € 40,10 monthly.

Also, now you don't have a shared service, this is not a VPS but a dedi server. It's only for you.
Oke this one is no SSD and no snapshots.
 
away from there
Thank you very much for feedback, where are you now, I mean which is your favorite data center ? mine was contabo, but now I am considering to have a server on hetzner as well, It's good to have multiple companies in hand
 
I mean which is your favorite data center ?
That depends on what we're looking for. For a small VPS system it's Contabo due to prices and their VPS work very good. Also 1 Dutch company which is more expensive but runs very well, I would have to lookup the name.

For hosting we want dedicated servers, we had several datacenters, but were looking to get good value for the money, so a good balance between what we get and what it cost.

So at this moment (since we're in Europe) most certainly Hetzner for servers.
We have been with OVH, but for the same price, a server went down Friday at 18.30 and we had to wait to Monday 08.00 to get the harddisk replaced. So we instantly left there at the end of the month to Hetzner, where we still are, so yes that's the most favorite data center for me.

The service at Hetzner is very good. We have had more disk issues over the night. But then have had choices to instantly replace (mostly that happens within 30 minutes) or fill in a time windows. So we had once a disk issue, disk still working but getting worse at 19.30 and agreed it would be replaced between 01.00 and 0.1.30 at night.
Server went down at 01.05 and was back up at 01.12 with the new disk. We even had on replaced instantly on another server at 03.30 at night.
So for the price paid (was around 45 euro's a month) it's very good service imho.
They don't do software support (at least not without seperate SLA as far as I know) but they often can help if the server does not reboot. For example once they booted the server back to the old kernel and I could remove the new one which was corrupt.

It's indeed good to have multiple companies anyway, that's for sure.
 
contabo provides nice VPS for start, at hetzner we use few storage and few AX101 - it's cheaper to keep few more powerfull servers than a lot of small. You can count licenses cost DA/Cloudlinux/Imunify and so on. Also one bigger server more flexible, also it don't need frequent updates and so on. Also we have own datacenter. Few servers rented in OVH for geo spread.
 
Thank you very much for sharing your experience @Richard G, @Zhenyapan yes you are right I always calculate licenses fee but what I am doing I am giving my customer more and more opportunities what they want to have to capture multiple kind of audience
I am offering SSD shared hosting plans and NVMe shared hosting plans 3rd option is WordPress plans (cloudlinux WP Accelerator + cPanel) with some extra resources and IO limits
technically SSD plans are cheaper like $2/month it's good for students and people who are just uploading their profiles $3.5 for NVMe and $4.5 for WordPress Plans

that's why I am deploying multiple small servers

to have maximum users on server i tried to configure properly Cloudlinux + MySQL governer i am lacking with cache system for web and database
what you guys suggest me ?
I was planning to move openlitespeed from apeach + best web cache system + database cache system
maybe my server can hold some more users than I will upgrade with same setup

I heard people holding 5000+ websites (dynamic like WordPress or WooCommerce average amount of traffic) on same server sometime i wonder how they can do that lol
 
@Kyo They configure WP only servers + paid cache plugins. I don't have such experience to give you any advice. But you always can tune php/webserver/mysql.
 
Sorry I can't help either, I don't use CL or Mysql governer or OLS. Don't have experience with that either.
 
CL is almost replacable by DA Propack. For lot of people on same server I`d recommend Litespeed. Either the free version, or better the small Proversion. The LS Cache is doing great in handling cache and lots of request. Additional opCache and Redis.
 
Back
Top