Are relative-path symlinks reliable on Rackspace Cloud Sites?
Posted
by
Jakobud
on Server Fault
See other posts from Server Fault
or by Jakobud
Published on 2011-11-28T15:59:38Z
Indexed on
2011/11/28
18:06 UTC
Read the original article
Hit count: 482
Rackspace's Cloud Sites have a lot of stupid limitations. For example, no SSH (in or out), no shell, no RSYNC, etc... (even through cron).
Recently I learned that you can't reliably use symlinks in Cloud Sites. Apparently this is because the absolute path of your sites could change at any moment, since it's a shared host environment split up between many disks/servers. I guess different account's sites get moved from disk to disk whenever Rackspace decides to. Supposedly to increase efficiency across the board.
So after talking with a Rackspace tech, he said they cannot guarantee that symlinks would always work. Obviously this is because if you have a symlink that use's an absolute path like this:
//mnt/disk-34566/home/user34566/files/sites/www.mysite.com/mydir
If you files go moved to a different disk (or whatever they do), then the absolute path would be different and the link would now be broken. That makes sense.
So next, I asked the Rackspace tech if relative path symlinks were reliable. So if I have the following link:
files/sites/www.mysite.com/mylink --> ../www.myothersite.com/anotherdir
You can see that the symlink simply points to a nearby directory's sub-directory. He said they cannot guarantee that even those would always work either. Since it uses a relative path to another nearby directory I'm not sure how it could ever break from something Rackspace would do. Do relative symlinks somehow rely on absolute paths underneath? Or is Rackspace using some weird custom filesystem where they will break from absolute path changes?
It seems like a relative-path symlink would be fine and would only break if the user did something to mess up the directories involved. But when the tech's say that they "don't officially support symlinks of any kind" that makes me hesitant to use them for large commercial websites in Cloud Sites.
Can anyone with Rackspace experience give input on this topic?
© Server Fault or respective owner