Re: [ceph-users] Replication (k=1) in LRC

2017-05-04 Thread Oleg Kolosov
Hi Loic Commenting out the sanity check did the trick. The code is working as I'd expected. Thanks On Fri, Apr 28, 2017 at 1:48 AM, Loic Dachary wrote: > > > On 04/27/2017 11:43 PM, Oleg Kolosov wrote: > > Hi Loic, > > Of course. > > I'm implementing a version of Pyramid Code. In Pyramid you re

Re: [ceph-users] Replication (k=1) in LRC

2017-04-28 Thread David Turner
You can't have different EC profiles in the same pool either. You have to create the pool as either a specific EC profile or as Replica. If you choose EC you can't even change the EC profile later, however you can change the amount of copies a Replica pool has. An EC pool of 1:1 doesn't do anyth

Re: [ceph-users] Replication (k=1) in LRC

2017-04-28 Thread Loic Dachary
On 04/28/2017 02:48 PM, David Turner wrote: > Wouldn't k=1, m=1 just be replica 2? Well yes. But Ceph does not support mixing replication and erasure code in the same pool. > EC will split the object into k pieces (1)... Ok, that's the whole object. I was just wondering if jerasure tolerate

Re: [ceph-users] Replication (k=1) in LRC

2017-04-28 Thread David Turner
Wouldn't k=1, m=1 just be replica 2? EC will split the object into k pieces (1)... Ok, that's the whole object. And then you want to be able to lose m copies of the object (1)... Ok, that's an entire copy of that whole object. That isn't erasure coding, that is full 2 copy replication. For erasure

Re: [ceph-users] Replication (k=1) in LRC

2017-04-27 Thread Loic Dachary
On 04/27/2017 11:43 PM, Oleg Kolosov wrote: > Hi Loic, > Of course. > I'm implementing a version of Pyramid Code. In Pyramid you remove one of the > global parities of Reed-Solomon and add one local parity for each local > group. In my version, I'd like to add local parity to the global parity

Re: [ceph-users] Replication (k=1) in LRC

2017-04-27 Thread Oleg Kolosov
Hi Loic, Of course. I'm implementing a version of Pyramid Code. In Pyramid you remove one of the global parities of Reed-Solomon and add one local parity for each local group. In my version, I'd like to add local parity to the global parity (meaning that for the case the global parity = 1, it would

Re: [ceph-users] Replication (k=1) in LRC

2017-04-27 Thread Loic Dachary
Hi Oleg, On 04/27/2017 11:23 PM, Oleg Kolosov wrote: > Hi, > I'm working on various implementation of LRC codes for study purposes. The > layers implementation in the LRC module is very convenient for this, but I've > came upon a problem in one of the cases. > I'm interested in having k=1, m=1 i

[ceph-users] Replication (k=1) in LRC

2017-04-27 Thread Oleg Kolosov
Hi, I'm working on various implementation of LRC codes for study purposes. The layers implementation in the LRC module is very convenient for this, but I've came upon a problem in one of the cases. I'm interested in having k=1, m=1 in one of the layers. However this gives out an error: Error EINVAL