- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- NFS Vs Database
Operating System - Linux
1821060
Members
2655
Online
109631
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-25-2002 12:43 PM
тАО04-25-2002 12:43 PM
NFS Vs Database
Hello,
We are having multiple Linux servers serving our PHP based application in our production environment. We are using a load balancer to route the requests according the the server load.
We plan to use one of the following methods to share the session info across servers:
NFS oriented : In this method we plan to mount (NFS mount) one of the folders of one system onto other servers. The shared file system will serve as session data repository for all the servers.
Database oriented : In this method the session repository is a table in a database. The session data is logged into the common table and all the servers would use the common table for storing the session. Hence the request can be routed to any system serving the application.
I would like to know which one of the above approaches would give us better performance.
As you all would have tried the NFS for many purposes, I thought this is an appropriate place to post my question. Forgive me if this is not appropriate in this forum.
Thanks in advance,
Vishwa
We are having multiple Linux servers serving our PHP based application in our production environment. We are using a load balancer to route the requests according the the server load.
We plan to use one of the following methods to share the session info across servers:
NFS oriented : In this method we plan to mount (NFS mount) one of the folders of one system onto other servers. The shared file system will serve as session data repository for all the servers.
Database oriented : In this method the session repository is a table in a database. The session data is logged into the common table and all the servers would use the common table for storing the session. Hence the request can be routed to any system serving the application.
I would like to know which one of the above approaches would give us better performance.
As you all would have tried the NFS for many purposes, I thought this is an appropriate place to post my question. Forgive me if this is not appropriate in this forum.
Thanks in advance,
Vishwa
When going gets tough, upgrade. ┬й Murphy.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2002 04:56 AM
тАО04-26-2002 04:56 AM
Re: NFS Vs Database
Your performance in this would be application dependent.
I would think that the database would be faster, though - but that's a guess.
Personally, I would do something completely different. Writing a very small client/server application using TCP/IP sockets would be fairly simple (if you have someone who has done this in C before), and perform the best.
Specifically, have one server with a daemon (that you write) that listens on a socket, and takes session information from the other servers, who send the session info via connecting to the socket. The Daemon can keep the session info in memory, and give it back out when asked by one of the clients.
You would have to add code to the client to send and retrieve session information from this server, but you're planning on doing that anyway (for NFS or database).
It would be more development, but significantly faster in production... at least in my opinion.
Good luck!
I would think that the database would be faster, though - but that's a guess.
Personally, I would do something completely different. Writing a very small client/server application using TCP/IP sockets would be fairly simple (if you have someone who has done this in C before), and perform the best.
Specifically, have one server with a daemon (that you write) that listens on a socket, and takes session information from the other servers, who send the session info via connecting to the socket. The Daemon can keep the session info in memory, and give it back out when asked by one of the clients.
You would have to add code to the client to send and retrieve session information from this server, but you're planning on doing that anyway (for NFS or database).
It would be more development, but significantly faster in production... at least in my opinion.
Good luck!
No matter where you go, there you are.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2002 07:35 PM
тАО04-28-2002 07:35 PM
Re: NFS Vs Database
With the origonal question in mind, the database method will provide you with better stability, and faster access.
NFS, whilst wonderful in it's abilities, is slow and cumbersome with a considerable overhead on all machines compared to throwing small pieces of information in a dedicated database.
Assuming you don't have a bottleneck in your network, go that way.
It doesn't have to be some high-powered be-all-and-end-all db server, something simple like MySQL is probably all that's required. But if you've got something big (or that you're comfortable using) already, use it.
NFS, whilst wonderful in it's abilities, is slow and cumbersome with a considerable overhead on all machines compared to throwing small pieces of information in a dedicated database.
Assuming you don't have a bottleneck in your network, go that way.
It doesn't have to be some high-powered be-all-and-end-all db server, something simple like MySQL is probably all that's required. But if you've got something big (or that you're comfortable using) already, use it.
One long-haired git at your service...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP