On 05/27/2014 04:10 PM, wsnote wrote: > There are two different modes of accessing the buckets.The upload domain > and the download domain are the same. > GET /mybucket HTTP/1.1 > Host: cname.domain.com > GET / HTTP/1.1 > Host: mybucket.cname.domain.com > > > Now I want to distinguish them. The reason that I want to do this is: > I have two ceph clusters which have the same data and sync by > radosgw-agent. The user can read the data from both clusters but write > to only the master zone. > When configure the domain, I feel puzzled. I mean the two domain: > cname.domain.com and mybucket.cname.domain.com. > If I configure the domain to the master zone, users can't surf the slave > zone whose computin power was wasted. > If I configure the domain to the both zone. user's writing request may > be directed to the slave zone and come up failure, which has bad user > experience. > If I use two domain for two zones, when I want to release an file for > public downloading, I must supply two url, which has not good experience > too. > Does any one meet with this situation and give some suggestion? Use Varnish in front? In the VCL you can direct all PUT, DELETE and POST request towards the master zone and serve GET and HEAD requests from both zones. Simply directing HTTP traffic. > Thanks! > > > > > > _______________________________________________ > ceph-users mailing list > ceph-users at lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- Wido den Hollander Ceph consultant and trainer 42on B.V. Phone: +31 (0)20 700 9902 Skype: contact42on