Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 27th, 2008, 06:45 PM
Jeremy
Guest
 
Posts: n/a
Default Low-level APC question

I am setting up a load-balanced cluster to host a PHP application with
several machines that will be running the same code. I was thinking of
putting most of the code itself on an NFS share, and counting on APC to
cache it in each server's memory so the share would (theoretically) be
hit very little. Is this a sound idea? I know that APC uses a device
ID and inode to identify cached code; is this a problem with NFS?

The production code will not be changed very often once it is in place;
I figure I can disable apc.stat to avoid hitting the NFS, and just flush
the cache by restarting apache on all the servers on the rare occasion
that the code is updated. I also plan to give APC copious amounts of
memory and keep apc.ttl at 0 so that code is cached indefinitely.

Can anyone who is intimately familiar with APC tell me whether this is a
sound idea - or would it be smarter to keep local copies of the code on
each server?

Thanks,
Jeremy
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles