The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Pages: 1
Just wanted to post a site running on 2 servers (one main server, nginx + php-fpm + mysql and one media server with nginx). Currently 6100 connections active:
[root@localhost public_html]# netstat -taunwp | grep nginx | grep EST | wc -l
6100
[root@localhost public_html]#
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Can we see the setup for nginx + php-fpm? especially nginx to see how to set ours up for maximum output
Offline
/etc/nginx/nginx.conf
[root@localhost ~]# cat /etc/nginx/nginx.conf
user nginx;
worker_processes 8;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
use epoll;
worker_connections 655350;
}
worker_rlimit_nofile 655350;
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
client_max_body_size 2000M;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
gzip on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/html text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
include /etc/nginx/conf.d/*.conf;
}
[root@localhost ~]#
The website configuration itself is nothing special, the default nginx config for adult script pro.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
I have a question. I have 2 servers also, and I only have 300 active users at a time and my site is slow, I tried changing the streaming methods and nothing reduces the server load. What can we do to fix this?
My site xpornclub.com has thumbs hosted on one server and everything else on main server and still slows down both servers. I think the thumbs server was actually worse.
Offline
I have a question. I have 2 servers also, and I only have 300 active users at a time and my site is slow, I tried changing the streaming methods and nothing reduces the server load. What can we do to fix this?
My site xpornclub.com has thumbs hosted on one server and everything else on main server and still slows down both servers. I think the thumbs server was actually worse.
Couple of options depending on your traffic and where the bottleneck is:
Move your database and static files to a separate server
Get a faster connection speed on your servers (1 gig+ should be plenty for serving thumbs and 300 videos at a time)
Get another server for streaming (again, high connection speed should be a major part of the decision). Put your most popular videos on it first.
Time consuming, but download your thumbs and use an image optimizer to reduce their size, then re-upload to thumb server.
Make sure compression is enabled and you are using cache correctly for all servers
Monitor your server side connections to see if you have a hotlink abuser you need to blacklist or if something is pinging you constantly
Offline
@xpornclub: you have crons for your other site on the server that run non-stop. every time i checked the server the crons are running. also it depends on the server specs also, the above server is a xeon e3-1230 with 16gb ram (this is for the site + mysql, not the videos). Also you host the videos on the same server...this means that there several persistent connections to stream the videos, while in the above example the videos are on a different server.
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz and 32GB RAM on my main server. 1Gig connection
Then on 2nd server i have xeon e3-1230 with 16gb ram no cpanel on this server. Also 1 Gig connection.
I tried to move thumbs onto the 2nd server, but it does not seem to help. I agree that if I moved static files and db onto the 2nd server and left the main server for streaming it would be better.
On a side note I also just got a windows server with 16gb and 1gig connection. But never used a win server before not sure if we can use this to help anything. I was just planning on running some seo programs from it?
Can I pay you to help me with this Adrian?
Offline
I had 10.000 online user with GA. I was using two servers 250$ total and CDN for streaming.
and I was using
1. Cheap CDN same as xhamster use, 100 Mbps $150,00 / month or 1000 Mbps $1 250,00 / month.
2. another server for database and video thumbs (SSD HDD will be better).
3. main server using apache 2.4 is better with php than nginx (SSD HDD will be better).
4. sphinx for video search
For streaming is better to pay for CDN. If you use 100 Mbps, $150,00 / month will be perfect. Also check your connections per IP.
Last edited by Eri (2016-03-16 18:29:08)
Offline
xpornclub- for what it's worth, without knowing your peak hours, your site has loaded without any delays for me... and I've checked it a few times. The interstitial is a bit annoying, by the way.
Offline
Yeah, I adjusted so Nginx settings and it loads better now. But my server load is like 9 or 10 of only 8 cores. But I have lots of memory available.
Offline
@xpornclub: we can discuss about the payment in private, but mainly i think its required that i monitor the server for a few days and try find out what is using the resources and what needs to be done. For thumbs/js/css i think its better to use CDN, its cheap. For videos separate servers (but you do not need this yet).
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
A good article to read about apache vs nginx: https://www.nginx.com/blog/nginx-vs-apache-our-view/
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
Pages: 1