Skip to contentSkip to conversation

Dev Meeting followup on compression

DISCUSSION Igor Fedotov 3 participants 4 messages Feb 8, 2016 – Feb 9, 2016

lore
Share & tools
lore
#0 lore raw

Guys,

let me summarize what we decided regarding compression support in Ceph during the Dev Meeting last week.

Below are possible implementation options, their pros/cons and the conclusion.

1) Add compression support to RGW.
Pros/Cons:
+ Simple
+ Reduced inter-component traffic
- Limited to specific clients
- Will conflict with partial read/writes if any appear

Alyona Kiseleva from Mirantis ([email protected]) will start implementing this promptly. You can ask additional questions to her via e-mail or during daily RGW stendups she is planning to attend regularly.

2) Add basic compression support to BlueStore. Basic = "Append only" functionality to be implemented. Specific "append only" hint/flag needs to be introduced for object creation interface.

Pros/Cons:
+ Moderate complexity
+ Suits for any client/PG backend
+ Good isolation from other Ceph components
- Limited applicability
- additional 50-200% CPU load for the cluster since we compress each replica/EC shard independently
- no inter-component traffic saving
- recovery procedure requires decompress/recompress sequence

Mirantis ( me specifically ) will start blueprint/POC creation for this promptly. I'm planning to attend daily RBD syncup regularly to inform on the progress.

3) Add full compression support at BlueStore. This includes 2) + support for random object writes. Pros/Cons:
+ Severe complexity
+ Suits for any client/PG backend
+ Good isolation from other Ceph components
- additional 50-200% CPU load for the cluster since we compress each replica/EC shard independently
- no inter-component traffic saving
- recovery procedure requires decompress/recompress sequence

On-Hold for now. Will require insert/delete data range for the store.

4) Add basic ( append only ) compression support at OSD using interim PGBackend.

Pros/Cons:
+ Moderate complexity
+ Suits for any client/PG backend
+ Data compressed before replication/"EC inflation"
+ inter-component traffic saving
+ recovery procedure don't need decompress/recompress sequence
- Too tight(danger) integration into Ceph internals
- Limited applicability
- Bad experience with "append only" notion for EC and desire to avoid that for compression

Rejected ( Personally I'd prefer this option with subsequent mutation to full RW support. The rationale is the reduced CPU load comparing to options 2 & 3)

Any additional comments/suggestions are welcome.

Thanks,
Igor

#1 lore raw
Quoted 23 lines · Igor Fedotov

Guys,

let me summarize what we decided regarding compression support in Ceph during the Dev Meeting last week.

Below are possible implementation options, their pros/cons and the conclusion.

1) Add compression support to RGW.
Pros/Cons:
+ Simple
+ Reduced inter-component traffic
- Limited to specific clients
- Will conflict with partial read/writes if any appear

Alyona Kiseleva from Mirantis ([email protected]) will start implementing this promptly. You can ask additional questions to her via e-mail or during daily RGW stendups she is planning to attend regularly.

2) Add basic compression support to BlueStore. Basic = "Append only" functionality to be implemented. Specific "append only" hint/flag needs to be introduced for object creation interface.

Quoted 9 lines

Pros/Cons:
+ Moderate complexity
+ Suits for any client/PG backend
+ Good isolation from other Ceph components
- Limited applicability
- additional 50-200% CPU load for the cluster since we compress each replica/EC shard independently
- no inter-component traffic saving
- recovery procedure requires decompress/recompress sequence

This is for EC pools only, right? Can you elaborate on this bullet?

Quoted 4 lines

Mirantis ( me specifically ) will start blueprint/POC creation for this promptly. I'm planning to attend daily RBD syncup regularly to inform on the progress.

Core standup and/or the new EC-overwrite meeting Sam is planning on holding is probably a better place for this.

Thanks,

Ilya

#2 lore raw

Ilya,

please find my comments inline.

Quoted 33 lines · Ilya Dryomov
Quoted 23 lines · Igor Fedotov

Guys,

let me summarize what we decided regarding compression support in Ceph during the Dev Meeting last week.

Below are possible implementation options, their pros/cons and the conclusion.

1) Add compression support to RGW.
Pros/Cons:
+ Simple
+ Reduced inter-component traffic
- Limited to specific clients
- Will conflict with partial read/writes if any appear

Alyona Kiseleva from Mirantis ([email protected]) will start implementing this promptly. You can ask additional questions to her via e-mail or during daily RGW stendups she is planning to attend regularly.

2) Add basic compression support to BlueStore. Basic = "Append only" functionality to be implemented. Specific "append only" hint/flag needs to be introduced for object creation interface.

Quoted 9 lines

Pros/Cons:
+ Moderate complexity
+ Suits for any client/PG backend
+ Good isolation from other Ceph components
- Limited applicability
- additional 50-200% CPU load for the cluster since we compress each replica/EC shard independently
- no inter-component traffic saving
- recovery procedure requires decompress/recompress sequence

Quoted 1 line

This is for EC pools only, right? Can you elaborate on this bullet?

That's for any pool type. When compression takes place at object store level and recovery is performed at OSD(PGBackend instance) you need to retrieve an object replica from the store ( and hence decompress it ) and subsequently compress it back when saving at a new store . Contrary having compress/decompress at PGBackend allows to bypass such decompress/compress overhead.

Quoted 5 lines
Quoted 3 lines

Mirantis ( me specifically ) will start blueprint/POC creation for this promptly. I'm planning to attend daily RBD syncup regularly to inform on the progress.

Core standup and/or the new EC-overwrite meeting Sam is planning on holding is probably a better place for this.

Where can I find a schedule for these meetings?

Quoted 3 lines

Thanks,

Ilya

Regards,
Igor

#3 lore raw

Core standup would be best. I'll send you an invite. -Sam

Quoted 76 lines · Igor Fedotov

Ilya,

please find my comments inline.

Quoted 38 lines · Ilya Dryomov
Quoted 25 lines · Igor Fedotov

Guys,

let me summarize what we decided regarding compression support in Ceph during the Dev Meeting last week.

Below are possible implementation options, their pros/cons and the conclusion.

1) Add compression support to RGW.
Pros/Cons:
+ Simple
+ Reduced inter-component traffic
- Limited to specific clients
- Will conflict with partial read/writes if any appear

Alyona Kiseleva from Mirantis ([email protected]) will start implementing this promptly. You can ask additional questions to her via e-mail or during daily RGW stendups she is planning to attend regularly.

2) Add basic compression support to BlueStore. Basic = "Append only" functionality to be implemented. Specific "append only" hint/flag needs to
be introduced for object creation interface.

Quoted 9 lines

Pros/Cons:
+ Moderate complexity
+ Suits for any client/PG backend
+ Good isolation from other Ceph components
- Limited applicability
- additional 50-200% CPU load for the cluster since we compress each replica/EC shard independently
- no inter-component traffic saving
- recovery procedure requires decompress/recompress sequence

Quoted 1 line

This is for EC pools only, right? Can you elaborate on this bullet?

That's for any pool type. When compression takes place at object store level and recovery is performed at OSD(PGBackend instance) you need to retrieve an object replica from the store ( and hence decompress it ) and subsequently compress it back when saving at a new store .
Contrary having compress/decompress at PGBackend allows to bypass such decompress/compress overhead.

Quoted 7 lines
Quoted 4 lines

Mirantis ( me specifically ) will start blueprint/POC creation for this promptly. I'm planning to attend daily RBD syncup regularly to inform on the
progress.

Core standup and/or the new EC-overwrite meeting Sam is planning on holding is probably a better place for this.

Where can I find a schedule for these meetings?

Quoted 3 lines

Thanks,

Ilya

Regards,
Igor

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html