Connecting Tech Pros Worldwide Help | Site Map

Low-level APC question

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 27th, 2008, 05: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 Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,989 network members.