Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-26 Thread Pranith Kumar Karampuri
On Thu, Jul 26, 2018 at 8:30 PM, John Strunk wrote: > It is configurable. Use the default as a notion of scale... 5s may become > 30s; It won't be 5m. > Also remember, this is the maximum, not minimum. A change to a watched > kube resource will cause an immediate reconcile. The periodic,

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-26 Thread John Strunk
It is configurable. Use the default as a notion of scale... 5s may become 30s; It won't be 5m. Also remember, this is the maximum, not minimum. A change to a watched kube resource will cause an immediate reconcile. The periodic, timer-based loop is just a fallback to catch state changes not

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread Pranith Kumar Karampuri
On Thu, Jul 26, 2018 at 9:59 AM, Pranith Kumar Karampuri < pkara...@redhat.com> wrote: > > > On Wed, Jul 25, 2018 at 10:48 PM, John Strunk wrote: > >> I have not put together a list. Perhaps the following will help w/ the >> context though... >> >> The "reconcile loop" of the operator will take

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread Sankarshan Mukhopadhyay
On Wed, Jul 25, 2018 at 11:53 PM, Yaniv Kaul wrote: > > > On Tue, Jul 24, 2018, 7:20 PM Pranith Kumar Karampuri > wrote: >> >> hi, >> Quite a few commands to monitor gluster at the moment take almost a >> second to give output. >> Some categories of these commands: >> 1) Any command that

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread Pranith Kumar Karampuri
On Wed, Jul 25, 2018 at 10:48 PM, John Strunk wrote: > I have not put together a list. Perhaps the following will help w/ the > context though... > > The "reconcile loop" of the operator will take the cluster CRs and > reconcile them against the actual cluster config. At the 20k foot level, >

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread Aravinda Vishwanathapura Krishna Murthy
On Tue, Jul 24, 2018 at 10:11 PM Sankarshan Mukhopadhyay < sankarshan.mukhopadh...@gmail.com> wrote: > On Tue, Jul 24, 2018 at 9:48 PM, Pranith Kumar Karampuri > wrote: > > hi, > > Quite a few commands to monitor gluster at the moment take almost a > > second to give output. > > Is this at

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread Aravinda Vishwanathapura Krishna Murthy
On Wed, Jul 25, 2018 at 11:54 PM Yaniv Kaul wrote: > > > On Tue, Jul 24, 2018, 7:20 PM Pranith Kumar Karampuri > wrote: > >> hi, >> Quite a few commands to monitor gluster at the moment take almost a >> second to give output. >> Some categories of these commands: >> 1) Any command that

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread Yaniv Kaul
On Tue, Jul 24, 2018, 7:20 PM Pranith Kumar Karampuri wrote: > hi, > Quite a few commands to monitor gluster at the moment take almost a > second to give output. > Some categories of these commands: > 1) Any command that needs to do some sort of mount/glfs_init. > Examples: 1) heal

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread John Strunk
I have not put together a list. Perhaps the following will help w/ the context though... The "reconcile loop" of the operator will take the cluster CRs and reconcile them against the actual cluster config. At the 20k foot level, this amounts to something like determining there should be 8 gluster

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread Pranith Kumar Karampuri
On Wed, Jul 25, 2018 at 8:17 PM, John Strunk wrote: > To add an additional data point... The operator will need to regularly > reconcile the true state of the gluster cluster with the desired state > stored in kubernetes. This task will be required frequently (i.e., > operator-framework defaults

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread John Strunk
To add an additional data point... The operator will need to regularly reconcile the true state of the gluster cluster with the desired state stored in kubernetes. This task will be required frequently (i.e., operator-framework defaults to every 5s even if there are no config changes). The actual

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-25 Thread Pranith Kumar Karampuri
On Tue, Jul 24, 2018 at 10:10 PM, Sankarshan Mukhopadhyay < sankarshan.mukhopadh...@gmail.com> wrote: > On Tue, Jul 24, 2018 at 9:48 PM, Pranith Kumar Karampuri > wrote: > > hi, > > Quite a few commands to monitor gluster at the moment take almost a > > second to give output. > > Is this

Re: [Gluster-devel] How long should metrics collection on a cluster take?

2018-07-24 Thread Sankarshan Mukhopadhyay
On Tue, Jul 24, 2018 at 9:48 PM, Pranith Kumar Karampuri wrote: > hi, > Quite a few commands to monitor gluster at the moment take almost a > second to give output. Is this at the (most) minimum recommended cluster size? > Some categories of these commands: > 1) Any command that needs to

[Gluster-devel] How long should metrics collection on a cluster take?

2018-07-24 Thread Pranith Kumar Karampuri
hi, Quite a few commands to monitor gluster at the moment take almost a second to give output. Some categories of these commands: 1) Any command that needs to do some sort of mount/glfs_init. Examples: 1) heal info family of commands 2) statfs to find space-availability etc (On my