Separating reads and writes for performance benefit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Francis,

Thanx for the suggestion..

I tried this. I set 644 owner root on the brick directory.
Apache is not able to read the PHP files from under the brick folder.
2012/03/23 09:04:32 [crit] 15752#0: *137813 stat() 
"/var/www/gluster-application-read-only/www/staging/failover-test/web/server-health.php" 
failed (13: Permission denied), client: *.*.107.216, server: 
*.failover.myserver.com, request: "GET /server-health.php HTTP/1.1", 
host: "test.failover.myserver.com"

Apache seems to be unable to change into brick dir since it has no x 
permission.
If I set the x for other users (apache) on the brick then since apache 
user is owner of all the files it will be able to overwrite it also 
using the path directly through the brick.
I maybe missing something?



On 23/03/12 08.20, Francsics Bal?zs wrote:
> Gluster runs on the gluster user, right? If you set the brick 
> permission to 644, and you read the files with a different user, you 
> cannot write to the dir.
>
> -- 
> Francsics Bal?zs
> Sent with Sparrow <http://www.sparrowmailapp.com/?sig>
>
> On 2012. March 22., Thursday at 22:18, Haris Zukanovic wrote:
>
>> Great to hear that...
>> All my tests so far have also confirmed that there are no problems 
>> when you only read from the brick dir.
>> However, I would like somehow to prevent accidentals writes if 
>> possible. Do you have any suggestions on how to accomplish that?
>> In fact, I am unable to allow writes to a file through the Gluster 
>> mount and allow to read but not write on the brick directory directly.
>>
>>
>>
>> On 22/03/12 20.47, winyaa at gmail.com <mailto:winyaa at gmail.com> wrote:
>>>
>>> If you are on the same machine, which the gluster runs from, and you 
>>> are using replicated setup, you can read from the brick directly, 
>>> but avoid to write into the brick dir, becouse it leads to data 
>>> inconsistency.
>>>
>>> 2012.03.22. 20:06, "Haris Zukanovic" <haris.zukanovic74 at gmail.com 
>>> <mailto:haris.zukanovic74 at gmail.com>> ezt ?rta:
>>>> Thanx for your input...
>>>> Do you mean that I should mount the brick through NFS to make the 
>>>> brick read-only? I would like to avioid that. I am on the same 
>>>> physical machine where the brick is.
>>>>
>>>>
>>>> On 22/03/12 19.56, Berend de Boer wrote:
>>>>>
>>>>>>                 "Haris" == Haris
>>>>>>                 Zukanovic<haris.zukanovic74 at gmail.com
>>>>>>                 <mailto:haris.zukanovic74 at gmail.com>>  writes:
>>>>>
>>>>>     Haris>  Anyhow, everything seems to work fine for now but the read
>>>>>     Haris>  performance is a problem.
>>>>>
>>>>> Try mounting the volume with nfs and see if that improves things.
>>>>>
>>>>
>>>> -- 
>>>> --
>>>> Haris Zukanovic
>>>>
>>>> _______________________________________________
>>>> Gluster-users mailing list
>>>> Gluster-users at gluster.org <mailto:Gluster-users at gluster.org>
>>>> http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
>>
>> --
>> --
>> Haris Zukanovic
>

-- 
--
Haris Zukanovic

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gluster.org/pipermail/gluster-users/attachments/20120323/9463d275/attachment.htm>


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux