Discussion Locked

Web Server and DB Server on 1 Machine?

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is it possible to use a second hard drive on a web server as a database server? I want to buy a server with Red Hat Linux with 2 hard drives. On one hard drive I would be running Apache Tomcat as the Web and App server. One the second hard drive I want to install a database server such as MySQL or PstrgreSQL. I want to be able to set up a database server able to serve to my pages with out having to purchase a whole other system. Is this possible?

7 replies

by true_texan

I don't know much about the Linux environment, but you should be able to. I have an NT server which monitors approximately 40 other application and database servers. My NT server has both the Apache Web Server and Oracle on it.

I would guess that your limiting factor would be the size and speed of the server.

Hope this helps!

by 20 + years

It is possible to do this. Your limiting factors are going to be the amount of processors and their speed. Data base operations can be very brutal on CPU usage. This was the main reason for development in a tiered architecture. The servers couldnot satisfactorily run multiple services without high enque times. You also still have one disk controller serving the two drives this may cause increased memory usage and page swapping between the drives as your application executes.

by bgjkl

Can you do it? Yes, if you have enough CPU cycles and memory....

Do you want to? If the webserver is accessible from the internet, you should not.

If you are using an internet app to access a database, the web server should be outside of a firewall, and the database server behind the firewall...

You should never keep 'mission critical data' on a server that an outside party can connect directly too.....

This discussion is closed to new replies.