php - CakePHP High-Availability Server Farm setup -


i working on configuring cakephp (1.3) based web app run in ha setup. have 4 web boxes running app mysql cluster database backend. have users uploading 12,000 - 24,000 images week (35-70 gb). app generates 2 additional files original, thumbnail , medium size image preview. means total of 36,000 - 72,000 possible files added repositories each week.

what trying wrap head around how handle large numbers of static file request coming users trying view these images. mean can have have multiple web boxes serving static files load-balancer dispatching requests.

but on here have ideas on how keep static file servers in sync?

if of have experiences share, or useful links me, appreciated.

thanks,

serialk

it's quite thorny problem.

technically can high-availability shared directory through nfs (or smb if like), using drbd , linux-ha active/passive setup. such setup have availability against single server loss, however, such setup quite wasteful , not easy scale - you'd have have app decide server(s) go to, configure nfs mounts etc, , gets rather complicated.

so i'd prompt avoiding keeping images in filesystem @ - or @ least, not conventional kind. assuming need flexible add more storage in future - if can keep storage , io requirement constant, drbd, ha nfs system.

for storing files in flexible "cloud", either

tahoe lafs

or perhaps, @ push, cassandra, require bit more integration maybe better in ways.

mysql-cluster not great big blobs (mostly) keeps data in ram; high consistency provides requires lot of locking makes updates scale (relatively) badly @ high workloads.

but still consider putting images in mysql-cluster anyway, particularly have set - require no more operational overhead.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -