Re: Concurrent writes management.

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

 




On 07/03/2014 07:35 AM, Pranith Kumar Karampuri wrote:

On 07/01/2014 12:58 PM, COCHE Sébastien wrote:

Does it mean that if I use gluster FUSE driver or NFS client, fcntl locks are manages and no data corruption could happen ?

Yes.
To be more precise, Yes, if applications take appropriate locks.

Pranith

Pranith

 

Sébastien Coché,

Architecte Infrastructure (DIP)

SIGMA Informatique – www.sigma.fr

8 rue Newton – CS 84533 – 44245 LA CHAPELLE SUR ERDRE CEDEX

Tél : (+33) 2.53.48.92.57 – Mob : 06 22 25 03 74

 

De : Pranith Kumar Karampuri [mailto:pkarampu@xxxxxxxxxx]
Envoyé : lundi 30 juin 2014 18:08
À : COCHE Sébastien
Cc : gluster-users@xxxxxxxxxxx
Objet : Re: Concurrent writes management.

 

 

On 06/30/2014 09:26 PM, COCHE Sébastien wrote:

Thank you for your response.

I understand that the file exist only one time on the volume. But it can be accessed in write, by many nodes (clients) at the same time.

What’s happen in those case ?

Nothing bad will happen to the filesystem. But the file may not be meaningful if the applications writing to it don't synchronize overlapping concurrent writes with fcntl locks.

Pranith

 

 

Sébastien Coché,

Architecte Infrastructure (DIP)

SIGMA Informatique – www.sigma.fr

8 rue Newton – CS 84533 – 44245 LA CHAPELLE SUR ERDRE CEDEX

Tél : (+33) 2.53.48.92.57 – Mob : 06 22 25 03 74

 

De : Pranith Kumar Karampuri [mailto:pkarampu@xxxxxxxxxx]
Envoyé : lundi 30 juin 2014 17:49
À : COCHE Sébastien; gluster-users@xxxxxxxxxxx
Objet : Re: Concurrent writes management.

 

 

On 06/30/2014 07:49 PM, COCHE Sébastien wrote:

Hello

 

I have a question regarding concurrent write.

How are manage those writes ? Is there a risk of data corruption ?

Is there a lock mechanism, against corruption ? If yes, how it work ?

I already had a look to forum and documents but I did not found a deep dive explanation.

For plain distribute volumes there exists only one file in the volume with the data. All the operations on the file happen just like they happen on normal filesystem. For replicated/distributed replicated volumes there are internal locks taken by replication feature to avoid any in-consistencies.
Please check https://github.com/gluster/glusterfs/blob/master/doc/features/afr-v1.md to know more about it.

Pranith


 

Thank for your feedback

Sorry for my poor english  ;-)

 

Sebastien





_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users

 

 



_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users

[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