Really funny. Someone have delete subject above comment.
Maybe someone can't reply and know that cgi is an obsolete language?
I try again...
Why script is in CGI e non PHP? I don't use cgi from the 2003 because create BIG OVERLOAD SERVER PROBLEM. The SAME script in PHP reduce load about 75%. So why continue to develove a script in a language obsolete, hard to configure and really expensive on server resources?
XFileSharing Pro - cgi vs php
Well, if you have problems with Perl - that's your problem.
It was deleted because your topic is absolutely sensless. You want us to rewrite it to php? That will never going to happen, sorry.
Calm down, you're causing too much noise on forum, not even being a customer yet. And please stop using caps for the topic titles.
It was deleted because your topic is absolutely sensless. You want us to rewrite it to php? That will never going to happen, sorry.
Calm down, you're causing too much noise on forum, not even being a customer yet. And please stop using caps for the topic titles.
-
- Posts: 32
- Joined: Nov 16, 2012 5:02 pm
admin wrote:Well, if you have problems with Perl - that's your problem.
It was deleted because your topic is absolutely sensless. You want us to rewrite it to php? That will never going to happen, sorry.
Calm down, you're causing too much noise on forum, not even being a customer yet. And please stop using caps for the topic titles.
Your reply is sensless, not my question. A lot of users have load problem with your script because is in cgi, and your suggest is to UPGRADE SERVER. It's a joke?
i suggest you to change almost the file that cause overload (like download, upload) from cgi in php. i don't understand why don't made this.
Show me "a lot of users"?
You're talking about things which you abosultely do not know. Users usually having disk I/O problems, but not the scripts performance issues.
There's absolutely nothing to be done with Perl vs PHP flame. Both languages have about the same performance.
By the way, topic title "cgi vs php" is not correct. CGI is a standard, while PHP is a programming language. PHP can work as a CGI script and Perl can work as a non-CGI script.
You're talking about things which you abosultely do not know. Users usually having disk I/O problems, but not the scripts performance issues.
There's absolutely nothing to be done with Perl vs PHP flame. Both languages have about the same performance.
By the way, topic title "cgi vs php" is not correct. CGI is a standard, while PHP is a programming language. PHP can work as a CGI script and Perl can work as a non-CGI script.
PHP is a loosely typed language and has a sucky way of debugging.
You do have other choices as far as file hosting scripts go and I wouldn't be surprised if there were PHP ones out there but XFS isn't one of them.
PHP is a basic web language while Perl is a big number cruncher. I run 70k daily downloads off a 512MB VPS so Perl can't be that bad.
You do have other choices as far as file hosting scripts go and I wouldn't be surprised if there were PHP ones out there but XFS isn't one of them.
PHP is a basic web language while Perl is a big number cruncher. I run 70k daily downloads off a 512MB VPS so Perl can't be that bad.
-
- Posts: 32
- Joined: Nov 16, 2012 5:02 pm
I did some performance test beetwin perl and php long ago. I written two scripts, one (very simple) counted to the point and then print something, the second searched specyfic files on HDD and then mail these files to me. Performance differences wasn't significant.
I wonder how significant is "licence verification process" which is run always when user request to download file (probably upload too) Maybe this is responsible for overloads ?
I wonder how significant is "licence verification process" which is run always when user request to download file (probably upload too) Maybe this is responsible for overloads ?
-
- Posts: 32
- Joined: Nov 16, 2012 5:02 pm
Many factors, but as a general setup you can follow these guidelines.
For database cpu/disk io and enough memory to keep db in memory.
For web frontend running perl or php scripts, usually CPU
For fileservers you need disk I/O, memory and bandwidth
Database:
Quad Xeon E3-Series, 12Gb ram, HW Raid1 or HW Raid10 with SAS/SSD disks
Webserver (if single web only)
Quad Xeon E3-Series,8Gb Ram HW Raid1 SATA disks
Webserver (if multiple)
Quad Xeon E3-Series, 8Gb Ram, Single SATA disk
Fileservers:
Quad Xeon E3-Series, 16-24Gb Ram, HW Raid10 6-12x SATA disks with hotspare
Databases should be on the same switch as the webservers, fileservers can be in any location you like.
You can use one provider to give you a good deal on high performance web and database, then use fileservers with 100tb providers etc.
For database cpu/disk io and enough memory to keep db in memory.
For web frontend running perl or php scripts, usually CPU
For fileservers you need disk I/O, memory and bandwidth
Database:
Quad Xeon E3-Series, 12Gb ram, HW Raid1 or HW Raid10 with SAS/SSD disks
Webserver (if single web only)
Quad Xeon E3-Series,8Gb Ram HW Raid1 SATA disks
Webserver (if multiple)
Quad Xeon E3-Series, 8Gb Ram, Single SATA disk
Fileservers:
Quad Xeon E3-Series, 16-24Gb Ram, HW Raid10 6-12x SATA disks with hotspare
Databases should be on the same switch as the webservers, fileservers can be in any location you like.
You can use one provider to give you a good deal on high performance web and database, then use fileservers with 100tb providers etc.
chrda wrote:Many factors, but as a general setup you can follow these guidelines.
For database cpu/disk io and enough memory to keep db in memory.
For web frontend running perl or php scripts, usually CPU
For fileservers you need disk I/O, memory and bandwidth
Database:
Quad Xeon E3-Series, 12Gb ram, HW Raid1 or HW Raid10 with SAS/SSD disks
Webserver (if single web only)
Quad Xeon E3-Series,8Gb Ram HW Raid1 SATA disks
Webserver (if multiple)
Quad Xeon E3-Series, 8Gb Ram, Single SATA disk
Fileservers:
Quad Xeon E3-Series, 16-24Gb Ram, HW Raid10 6-12x SATA disks with hotspare
Databases should be on the same switch as the webservers, fileservers can be in any location you like.
You can use one provider to give you a good deal on high performance web and database, then use fileservers with 100tb providers etc.
Chrda : Thanks for sharing
MySQL with InnoDB will write to disk on new data like inserts and updates.
Keeping everything in memory will most likely give you data loss.
You can but certain tables in memory engine, if you can risk loosing the data.
MemSQL is a solution, but its pretty new.
Alternative for MySQL single server is MySQL Galera Cluster.
I really like Galera, but you need to make sure all servers are identical and that there isn't any I/O bottlenecks.
Keeping everything in memory will most likely give you data loss.
You can but certain tables in memory engine, if you can risk loosing the data.
MemSQL is a solution, but its pretty new.
Alternative for MySQL single server is MySQL Galera Cluster.
I really like Galera, but you need to make sure all servers are identical and that there isn't any I/O bottlenecks.