Pool setting for recovery priority
Hi Sam,
As part of the effort to solve problems similar to issue #13104 (http://tracker.ceph.com/issues/13104), do you think it is appropriate to add some parameters to pool setting:
1. recovery priority of the pool - we have a customized pool recovery priority (like process's nice value) to favor some pools over others. For example, the bucket index pool is usually much much smaller but important to recover first (e.g. might affect write latency as like issue #13104).
2. pool level recovery op priority - currently we have a low priority for recovery op (by default it is 10 while client io's priority is 63), is it possible to have a pool setting to customized the priority on pool level.
The purpose is to give some flexibility in terms of favor some pools over others when doing recovery, in our case using radosgw, we would like to favor bucket index pool as that is on the write path for all requests.
Thanks,
Guang --
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
Quoted 6 lines · GuangYang
Hi Sam,
As part of the effort to solve problems similar to issue #13104 (http://tracker.ceph.com/issues/13104), do you think it is appropriate to add some parameters to pool setting:
1. recovery priority of the pool - we have a customized pool recovery priority (like process's nice value) to favor some pools over others. For example, the bucket index pool is usually much much smaller but important to recover first (e.g. might affect write latency as like issue #13104).
2. pool level recovery op priority - currently we have a low priority for recovery op (by default it is 10 while client io's priority is 63), is it possible to have a pool setting to customized the priority on pool level.The purpose is to give some flexibility in terms of favor some pools over others when doing recovery, in our case using radosgw, we would like to favor bucket index pool as that is on the write path for all requests.
I think this makes sense, and is analogous to
https://github.com/ceph/ceph/pull/5922
which does per-pool scrub settings. I think the only real question is whether pg_pool_t is the right place to keep piling these parameters in, or whether we want some unstructured key/value settings or something.
sage
Thanks Sage, just opened a tracker for this - http://tracker.ceph.com/issues/13121.
Thanks,
Guang
----------------------------------------
Quoted 23 lines
Date: Wed, 16 Sep 2015 09:23:07 -0700
From: [email protected]
To: [email protected]
CC: [email protected]; [email protected]
Subject: Re: Pool setting for recovery priorityQuoted 6 lines · GuangYang
Hi Sam,
As part of the effort to solve problems similar to issue #13104 (http://tracker.ceph.com/issues/13104), do you think it is appropriate to add some parameters to pool setting:
1. recovery priority of the pool - we have a customized pool recovery priority (like process's nice value) to favor some pools over others. For example, the bucket index pool is usually much much smaller but important to recover first (e.g. might affect write latency as like issue #13104).
2. pool level recovery op priority - currently we have a low priority for recovery op (by default it is 10 while client io's priority is 63), is it possible to have a pool setting to customized the priority on pool level.The purpose is to give some flexibility in terms of favor some pools over others when doing recovery, in our case using radosgw, we would like to favor bucket index pool as that is on the write path for all requests.
I think this makes sense, and is analogous to
https://github.com/ceph/ceph/pull/5922
which does per-pool scrub settings. I think the only real question is whether
pg_pool_tis the right place to keep piling these parameters in, or whether we want some unstructured key/value settings or something.sage
Quoted 8 lines · Sage Weil
Quoted 6 lines · GuangYang
Hi Sam,
As part of the effort to solve problems similar to issue #13104 (http://tracker.ceph.com/issues/13104), do you think it is appropriate to add some parameters to pool setting:
1. recovery priority of the pool - we have a customized pool recovery priority (like process's nice value) to favor some pools over others. For example, the bucket index pool is usually much much smaller but important to recover first (e.g. might affect write latency as like issue #13104).
2. pool level recovery op priority - currently we have a low priority for recovery op (by default it is 10 while client io's priority is 63), is it possible to have a pool setting to customized the priority on pool level.The purpose is to give some flexibility in terms of favor some pools over others when doing recovery, in our case using radosgw, we would like to favor bucket index pool as that is on the write path for all requests.
Quoted 7 lines
I think this makes sense, and is analogous to
https://github.com/ceph/ceph/pull/5922which does per-pool scrub settings. I think the only real question is whether
pg_pool_tis the right place to keep piling these parameters in, or whether we want some unstructured key/value settings or something.
I aggree that adding a bunch of new rarely used fields to pg_pool_t might not be a very good idea. Still storing these options here looks convenient (accessing, updating...). What do you think if I add something like this in pg_pool_t instead?
typedef boost::variant<string,int,double> pool_opt_value_t; typedef std::map<pool_opt_key_t,pool_opt_value_t> opts_t; opts_t opts;
(in reality I suppose it will be more compicated but will have something like this in base).
Usually opts will be empty or have only one or two settings, so it will not consume much space.
Or where do you suggest to store them instead?
BTW, I see we already have in pg_pool_t:
map<string,string> properties; ///< OBSOLETE
I wonder what it was supposed to be used for and why it is marked obsolete?
Signature · 5 lines
Mykola Golub -- 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
Hi,
Quoted 26 lines · Mykola Golub
Quoted 8 lines · Sage Weil
Quoted 6 lines · GuangYang
Hi Sam,
As part of the effort to solve problems similar to issue #13104 (http://tracker.ceph.com/issues/13104), do you think it is appropriate to add some parameters to pool setting:
1. recovery priority of the pool - we have a customized pool recovery priority (like process's nice value) to favor some pools over others. For example, the bucket index pool is usually much much smaller but important to recover first (e.g. might affect write latency as like issue #13104).
2. pool level recovery op priority - currently we have a low priority for recovery op (by default it is 10 while client io's priority is 63), is it possible to have a pool setting to customized the priority on pool level.The purpose is to give some flexibility in terms of favor some pools over others when doing recovery, in our case using radosgw, we would like to favor bucket index pool as that is on the write path for all requests.
Quoted 7 lines
I think this makes sense, and is analogous to
https://github.com/ceph/ceph/pull/5922which does per-pool scrub settings. I think the only real question is whether
pg_pool_tis the right place to keep piling these parameters in, or whether we want some unstructured key/value settings or something.I aggree that adding a bunch of new rarely used fields to
pg_pool_tmight not be a very good idea. Still storing these options here looks convenient (accessing, updating...). What do you think if I add something like this inpg_pool_tinstead?typedef boost::variant<string,int,double>
pool_opt_value_t; typedef std::map<pool_opt_key_t,pool_opt_value_t>opts_t;opts_topts;
Quoted 5 lines
(in reality I suppose it will be more compicated but will have something like this in base).
Usually opts will be empty or have only one or two settings, so it will not consume much space.
What do you think about this implementation, which adds a dictionary for pool options to pg_pool_t?
https://github.com/ceph/ceph/pull/6081
Although #5922 has already been merged to master, I think it is still not late to change scrub intervals to be stored in options?
Quoted 12 lines
Or where do you suggest to store them instead?
BTW, I see we already have in
pg_pool_t:map<string,string> properties; ///< OBSOLETE
I wonder what it was supposed to be used for and why it is marked obsolete?
Signature · 1 line
Mykola Golub
Signature · 5 lines
Mykola Golub -- 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
Hi Mykola,
Quoted 35 lines · Mykola Golub
Hi,
Quoted 26 lines · Mykola Golub
Quoted 8 lines · Sage Weil
Quoted 6 lines · GuangYang
Hi Sam,
As part of the effort to solve problems similar to issue #13104 (http://tracker.ceph.com/issues/13104), do you think it is appropriate to add some parameters to pool setting:
1. recovery priority of the pool - we have a customized pool recovery priority (like process's nice value) to favor some pools over others. For example, the bucket index pool is usually much much smaller but important to recover first (e.g. might affect write latency as like issue #13104).
2. pool level recovery op priority - currently we have a low priority for recovery op (by default it is 10 while client io's priority is 63), is it possible to have a pool setting to customized the priority on pool level.The purpose is to give some flexibility in terms of favor some pools over others when doing recovery, in our case using radosgw, we would like to favor bucket index pool as that is on the write path for all requests.
Quoted 7 lines
I think this makes sense, and is analogous to
https://github.com/ceph/ceph/pull/5922which does per-pool scrub settings. I think the only real question is whether
pg_pool_tis the right place to keep piling these parameters in, or whether we want some unstructured key/value settings or something.I aggree that adding a bunch of new rarely used fields to
pg_pool_tmight not be a very good idea. Still storing these options here looks convenient (accessing, updating...). What do you think if I add something like this inpg_pool_tinstead?typedef boost::variant<string,int,double>
pool_opt_value_t; typedef std::map<pool_opt_key_t,pool_opt_value_t>opts_t;opts_topts;Quoted 5 lines
(in reality I suppose it will be more compicated but will have something like this in base).
Usually opts will be empty or have only one or two settings, so it will not consume much space.
Quoted 7 lines
What do you think about this implementation, which adds a dictionary for pool options to
pg_pool_t?https://github.com/ceph/ceph/pull/6081
Although #5922 has already been merged to master, I think it is still not late to change scrub intervals to be stored in options?
Yeah, I agree that something along these lines is better. It's too late to add this to infernalis, though.. I think we should revert the scrub interval options and then use the dictionary (post-infernalis).
How does that sound?
sage
Quoted 22 lines
Quoted 13 lines
Or where do you suggest to store them instead?
BTW, I see we already have in
pg_pool_t:map<string,string> properties; ///< OBSOLETE
I wonder what it was supposed to be used for and why it is marked obsolete?
Signature · 1 line
Mykola GolubSignature · 5 lines
Mykola Golub -- 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
Quoted 8 lines · Sage Weil
Hi Mykola,
Quoted 5 lines · Mykola Golub
What do you think about this implementation, which adds a dictionary for pool options to
pg_pool_t?
Quoted 8 lines
Quoted 2 lines
Although #5922 has already been merged to master, I think it is still not late to change scrub intervals to be stored in options?
Yeah, I agree that something along these lines is better. It's too late to add this to infernalis, though.. I think we should revert the scrub interval options and then use the dictionary (post-infernalis).
How does that sound?
I sounds good to me. I will rebase #6081 against master after the previous patch is reverted and mark it [DNM].
Signature · 1 line
Mykola Golub
Quoted 12 lines · Mykola Golub
Quoted 11 lines · Sage Weil
Hi Mykola,
Quoted 7 lines · Mykola Golub
What do you think about this implementation, which adds a dictionary for pool options to
pg_pool_t?https://github.com/ceph/ceph/pull/6081
Although #5922 has already been merged to master, I think it is still not late to change scrub intervals to be stored in options?
Quoted 8 lines
Quoted 5 lines
Yeah, I agree that something along these lines is better. It's too late to add this to infernalis, though.. I think we should revert the scrub interval options and then use the dictionary (post-infernalis).
How does that sound?
I sounds good to me. I will rebase #6081 against master after the previous patch is reverted and mark it [DNM].
It's just this last commit, right?
https://github.com/ceph/ceph/pull/6084
sage
Quoted 3 lines · Sage Weil
It's just this last commit, right?
Yes, thanks.
Signature · 1 line
Mykola Golub
I sort of misunderstood the pain point here, I thought we wanted to simplify from CLI side to set those parameters as we have more and more pool level setting, not from an internal implementation's perspective..
Thanks Mykola for implementing this, I will rebase the priority setting stuff against it.
Thanks,
Guang
----------------------------------------
Quoted 82 lines
Date: Fri, 25 Sep 2015 07:09:53 -0700
From: [email protected]
To: [email protected]
CC: [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: Pool setting for recovery priorityHi Mykola,
Quoted 35 lines · Mykola Golub
Hi,
Quoted 26 lines · Mykola Golub
Quoted 8 lines · Sage Weil
Quoted 6 lines · GuangYang
Hi Sam,
As part of the effort to solve problems similar to issue #13104 (http://tracker.ceph.com/issues/13104), do you think it is appropriate to add some parameters to pool setting:
1. recovery priority of the pool - we have a customized pool recovery priority (like process's nice value) to favor some pools over others. For example, the bucket index pool is usually much much smaller but important to recover first (e.g. might affect write latency as like issue #13104).
2. pool level recovery op priority - currently we have a low priority for recovery op (by default it is 10 while client io's priority is 63), is it possible to have a pool setting to customized the priority on pool level.The purpose is to give some flexibility in terms of favor some pools over others when doing recovery, in our case using radosgw, we would like to favor bucket index pool as that is on the write path for all requests.
Quoted 7 lines
I think this makes sense, and is analogous to
https://github.com/ceph/ceph/pull/5922
which does per-pool scrub settings. I think the only real question is whether
pg_pool_tis the right place to keep piling these parameters in, or whether we want some unstructured key/value settings or something.I aggree that adding a bunch of new rarely used fields to
pg_pool_tmight not be a very good idea. Still storing these options here looks convenient (accessing, updating...). What do you think if I add something like this inpg_pool_tinstead?typedef boost::variant<string,int,double>
pool_opt_value_t; typedef std::map<pool_opt_key_t,pool_opt_value_t>opts_t;opts_topts;Quoted 5 lines
(in reality I suppose it will be more compicated but will have something like this in base).
Usually opts will be empty or have only one or two settings, so it will not consume much space.
Quoted 7 lines
What do you think about this implementation, which adds a dictionary for pool options to
pg_pool_t?https://github.com/ceph/ceph/pull/6081
Although #5922 has already been merged to master, I think it is still not late to change scrub intervals to be stored in options?
Yeah, I agree that something along these lines is better. It's too late to add this to infernalis, though.. I think we should revert the scrub interval options and then use the dictionary (post-infernalis).
How does that sound?
sageQuoted 22 lines
Quoted 6 lines
Or where do you suggest to store them instead?
BTW, I see we already have in
pg_pool_t:Quoted 7 lines
map<string,string> properties; ///< OBSOLETE
I wonder what it was supposed to be used for and why it is marked obsolete?
--
Mykola Golub--
Mykola Golub
--
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
Quoted 7 lines · GuangYang
I sort of misunderstood the pain point here, I thought we wanted to simplify from CLI side to set those parameters as we have more and more pool level setting, not from an internal implementation's perspective..
Thanks Mykola for implementing this, I will rebase the priority setting stuff against it.
Ah, so you are working on adding per pool priority options? Because I have just started working on this too, but if you already do this I will abandon it.
Signature · 1 line
Mykola Golub
Yeah it is this one - https://github.com/ceph/ceph/pull/5953. It is not conflicted with your work but just need a rebase.. I will do once your PR pass the review. Thanks.
----------------------------------------
Quoted 22 lines
Date: Tue, 29 Sep 2015 21:47:42 +0300
From: [email protected]
To: [email protected]
CC: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: Pool setting for recovery priorityQuoted 7 lines · GuangYang
I sort of misunderstood the pain point here, I thought we wanted to simplify from CLI side to set those parameters as we have more and more pool level setting, not from an internal implementation's perspective..
Thanks Mykola for implementing this, I will rebase the priority setting stuff against it.
Ah, so you are working on adding per pool priority options? Because I have just started working on this too, but if you already do this I will abandon it.
--
Mykola Golub