Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to reduce redis io usage
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Haluk AKIN  
View profile  
 More options Sep 30 2012, 9:47 am
From: Haluk AKIN <haluka...@gmail.com>
Date: Sun, 30 Sep 2012 06:47:40 -0700 (PDT)
Local: Sun, Sep 30 2012 9:47 am
Subject: How to reduce redis io usage

Hello,

Our redis server can spike up its io usage from time to time. And when that
happens we tend to have more connection problems to redis.

If possible I would like to try to reduce redis's io usage.
checking the conf file. The following configuration looks like it could
help reduce io usage:
-CONFIG set save "900 1 300 50000 60 100000"
-"append only file" is already turned off.

How about other options?

For instance:
Would setting linux's overcommit_memory to 1 help reduce redis's io usage?

Thanks,
Haluk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dvir Volk  
View profile  
 More options Sep 30 2012, 10:09 am
From: Dvir Volk <dvir...@gmail.com>
Date: Sun, 30 Sep 2012 16:09:02 +0200
Local: Sun, Sep 30 2012 10:09 am
Subject: Re: How to reduce redis io usage

do the IO spikes occur when redis is dumping to disk?
have you tried not persisting at all (CONFIG SET SAVE "")?
BTW is this an AWS instance?

--
Dvir Volk
Chief Architect, Everything.me
http://everything.me

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Haluk AKIN  
View profile  
 More options Sep 30 2012, 10:47 am
From: "Haluk AKIN" <haluka...@gmail.com>
Date: Sun, 30 Sep 2012 17:46:47 +0300
Local: Sun, Sep 30 2012 10:46 am
Subject: RE: How to reduce redis io usage

Dvir,

This is not AWS. It is a dedicated server.

I hadn't thought of (config set save ""). I now pushed this configuration to
production.

I'll post an update probably tomorrow on how the results are. Maybe this
could also reduce connection problems.

Thanks,

Haluk

From: redis-db@googlegroups.com [mailto:redis-db@googlegroups.com] On Behalf
Of Dvir Volk
Sent: Sunday, September 30, 2012 5:09 PM
To: redis-db@googlegroups.com
Subject: Re: How to reduce redis io usage

do the IO spikes occur when redis is dumping to disk?

have you tried not persisting at all (CONFIG SET SAVE "")?

BTW is this an AWS instance?

On Sun, Sep 30, 2012 at 3:47 PM, Haluk AKIN <haluka...@gmail.com> wrote:

Hello,

Our redis server can spike up its io usage from time to time. And when that
happens we tend to have more connection problems to redis.

If possible I would like to try to reduce redis's io usage.
checking the conf file. The following configuration looks like it could help
reduce io usage:
-CONFIG set save "900 1 300 50000 60 100000"
-"append only file" is already turned off.

How about other options?

For instance:
Would setting linux's overcommit_memory to 1 help reduce redis's io usage?

Thanks,
Haluk

--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/redis-db/-/ggd815PGsScJ.
To post to this group, send email to redis-db@googlegroups.com.
To unsubscribe from this group, send email to
redis-db+unsubscribe@googlegroups.com
<mailto:redis-db%2Bunsubscribe@googlegroups.com> .
For more options, visit this group at
http://groups.google.com/group/redis-db?hl=en.

--

Dvir Volk

Chief Architect, Everything.me

http://everything.me

--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To post to this group, send email to redis-db@googlegroups.com.
To unsubscribe from this group, send email to
redis-db+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/redis-db?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josiah Carlson  
View profile  
 More options Sep 30 2012, 4:47 pm
From: Josiah Carlson <josiah.carl...@gmail.com>
Date: Sun, 30 Sep 2012 13:47:48 -0700
Local: Sun, Sep 30 2012 4:47 pm
Subject: Re: How to reduce redis io usage
Note that when you disable saving, you have no persistence.

Regards,
 - Josiah


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dvir Volk  
View profile  
 More options Sep 30 2012, 6:02 pm
From: Dvir Volk <dvir...@gmail.com>
Date: Mon, 1 Oct 2012 00:02:48 +0200
Local: Sun, Sep 30 2012 6:02 pm
Subject: Re: How to reduce redis io usage

Yeah, just to clarify: I offered it as a debugging/testing measure, not a
solution.

sent from my Sinclair ZX48
On Sep 30, 2012 10:47 PM, "Josiah Carlson" <josiah.carl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Haluk AKIN  
View profile  
 More options Sep 30 2012, 6:15 pm
From: "Haluk AKIN" <haluka...@gmail.com>
Date: Mon, 1 Oct 2012 01:14:43 +0300
Local: Sun, Sep 30 2012 6:14 pm
Subject: RE: How to reduce redis io usage

No problem here. I think it is a solid advice. We do not need persistence on
this server. We have over 30GB of data, but it can totally rebuild itself
from scratch in case of failure. So this could even be a production
configuration for us.

So far we are definitely seeing significantly less io usage.

Tomorrow, I would like to try isolating redis to a new harddrive and observe
a bit more before I share the results.

Thanks,

Haluk

From: redis-db@googlegroups.com [mailto:redis-db@googlegroups.com] On Behalf
Of Dvir Volk
Sent: Monday, October 01, 2012 1:03 AM
To: redis-db@googlegroups.com
Subject: Re: How to reduce redis io usage

Yeah, just to clarify: I offered it as a debugging/testing measure, not a
solution.

sent from my Sinclair ZX48

On Sep 30, 2012 10:47 PM, "Josiah Carlson" <josiah.carl...@gmail.com> wrote:

Note that when you disable saving, you have no persistence.

Regards,
 - Josiah

<mailto:redis-db%2Bunsubscribe@googlegroups.com> .

<mailto:redis-db%2Bunsubscribe@googlegroups.com> .
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.

> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To post to this group, send email to redis-db@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com

<mailto:redis-db%2Bunsubscribe@googlegroups.com> .

> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.

--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To post to this group, send email to redis-db@googlegroups.com.
To unsubscribe from this group, send email to
redis-db+unsubscribe@googlegroups.com
<mailto:redis-db%2Bunsubscribe@googlegroups.com> .
For more options, visit this group at
http://groups.google.com/group/redis-db?hl=en.

--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To post to this group, send email to redis-db@googlegroups.com.
To unsubscribe from this group, send email to
redis-db+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/redis-db?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dvir Volk  
View profile  
 More options Sep 30 2012, 6:41 pm
From: Dvir Volk <dvir...@gmail.com>
Date: Mon, 1 Oct 2012 00:41:06 +0200
Local: Sun, Sep 30 2012 6:41 pm
Subject: Re: How to reduce redis io usage

if you disable persistence, redis does not touch the hard drive at all, and
all IO is just network.

--
Dvir Volk
Chief Architect, Everything.me
http://everything.me

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Andrews  
View profile  
 More options Sep 30 2012, 7:29 pm
From: Greg Andrews <hvar...@gmail.com>
Date: Sun, 30 Sep 2012 16:29:50 -0700
Local: Sun, Sep 30 2012 7:29 pm
Subject: Re: How to reduce redis io usage

Dvir, I haven't kept up-to-date on this particular behavior with versions
after 2.2.x.  Does a Redis instance with persistence disabled still perform
a AOF creation and write when a slave is attached and sends the SYNC
command?

  -Greg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dvir Volk  
View profile  
 More options Sep 30 2012, 7:36 pm
From: Dvir Volk <dvir...@gmail.com>
Date: Mon, 1 Oct 2012 01:36:11 +0200
Local: Sun, Sep 30 2012 7:36 pm
Subject: Re: How to reduce redis io usage

oh, I forgot about that one :) yeah, it's not AOF but RDB dump when a slave
connects to it. for 30GB of data, even on a physical server this can cause
the redis instance to halt a bit while we fork. but that's far more rare
(hopefully!) than forking for BGSAVE or rewriting AOFs every few minutes.

--
Dvir Volk
Chief Architect, Everything.me
http://everything.me

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matthew Palmer  
View profile  
 More options Sep 30 2012, 7:39 pm
From: Matthew Palmer <mpal...@hezmatt.org>
Date: Mon, 1 Oct 2012 09:38:56 +1000
Local: Sun, Sep 30 2012 7:38 pm
Subject: Re: How to reduce redis io usage

On Sun, Sep 30, 2012 at 04:29:50PM -0700, Greg Andrews wrote:
> Dvir, I haven't kept up-to-date on this particular behavior with versions
> after 2.2.x.  Does a Redis instance with persistence disabled still perform
> a AOF creation and write when a slave is attached and sends the SYNC
> command?

It's an RDB, but yes, connecting a slave triggers an RDB creation on the
master, and that RDB will be copied to disk on the slave before being
loaded into memory.

http://redis.io/topics/replication

- Matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Andrews  
View profile  
 More options Sep 30 2012, 7:43 pm
From: Greg Andrews <hvar...@gmail.com>
Date: Sun, 30 Sep 2012 16:43:29 -0700
Local: Sun, Sep 30 2012 7:43 pm
Subject: Re: How to reduce redis io usage

Wow, the copy to disk on the slave side is a new one to me.  Maybe that's
how recent versions prevent the slave from blocking all querys during the
SYNC.

  -Greg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josiah Carlson  
View profile  
 More options Sep 30 2012, 9:20 pm
From: Josiah Carlson <josiah.carl...@gmail.com>
Date: Sun, 30 Sep 2012 18:20:23 -0700
Local: Sun, Sep 30 2012 9:20 pm
Subject: Re: How to reduce redis io usage
Redis has been able to not block on requests during sync for quite a
while (maybe since 2.0). Somewhere around version 2.0 is also when
Redis got the option to serve stale data when sync had been lost (the
default in pre-2.0 versions), or to return an error (the new default).

And I am pretty sure that writing the incoming rdb to disk and being
able to serve requests prior to complete startup are independent and
unrelated. Redis should have always been writing incoming dumps to
disk, it's just that returning something during load was something
that would be useful to know (instead of blocking on startup).

Regards,
 - Josiah


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Haluk AKIN  
View profile  
 More options Oct 3 2012, 6:47 pm
From: "Haluk AKIN" <haluka...@gmail.com>
Date: Thu, 4 Oct 2012 01:46:47 +0300
Local: Wed, Oct 3 2012 6:46 pm
Subject: RE: How to reduce redis io usage

Dvir;

This worked just fine. Once I set "save" configuration to nothing, io usage
drops to zero.

Thank you,

Haluk

From: redis-db@googlegroups.com [mailto:redis-db@googlegroups.com] On Behalf
Of Dvir Volk
Sent: Monday, October 01, 2012 1:03 AM
To: redis-db@googlegroups.com
Subject: Re: How to reduce redis io usage

Yeah, just to clarify: I offered it as a debugging/testing measure, not a
solution.

sent from my Sinclair ZX48

On Sep 30, 2012 10:47 PM, "Josiah Carlson" <josiah.carl...@gmail.com> wrote:

Note that when you disable saving, you have no persistence.

Regards,
 - Josiah

<mailto:redis-db%2Bunsubscribe@googlegroups.com> .

<mailto:redis-db%2Bunsubscribe@googlegroups.com> .
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.

> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To post to this group, send email to redis-db@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com

<mailto:redis-db%2Bunsubscribe@googlegroups.com> .

> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.

--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To post to this group, send email to redis-db@googlegroups.com.
To unsubscribe from this group, send email to
redis-db+unsubscribe@googlegroups.com
<mailto:redis-db%2Bunsubscribe@googlegroups.com> .
For more options, visit this group at
http://groups.google.com/group/redis-db?hl=en.

--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To post to this group, send email to redis-db@googlegroups.com.
To unsubscribe from this group, send email to
redis-db+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/redis-db?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dvir Volk  
View profile  
 More options Oct 3 2012, 6:54 pm
From: Dvir Volk <dvir...@gmail.com>
Date: Thu, 4 Oct 2012 00:54:31 +0200
Local: Wed, Oct 3 2012 6:54 pm
Subject: Re: How to reduce redis io usage

cool. if you want to avoid this AND keep some persistence, you might want
to keep a slave process that does that but no one will ever talk to.

--
Dvir Volk
Chief Architect, Everything.me
http://everything.me

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. Edward (Ed) Borasky  
View profile  
 More options Oct 3 2012, 6:58 pm
From: "M. Edward (Ed) Borasky" <zn...@znmeb.net>
Date: Wed, 3 Oct 2012 15:58:30 -0700
Local: Wed, Oct 3 2012 6:58 pm
Subject: Re: How to reduce redis io usage

On Wed, Oct 3, 2012 at 3:54 PM, Dvir Volk <dvir...@gmail.com> wrote:
> cool. if you want to avoid this AND keep some persistence, you might want to
> keep a slave process that does that but no one will ever talk to.

Ah, but then you have the network I/O to the slave, which might be a
bigger bottleneck than the disk I/O on the master. Your mileage may
vary, as the saying goes. ;-)

--
Twitter: http://twitter.com/znmeb; Computational Journalism Publishers
Workbench: http://j.mp/QCsXOr

How the Hell can the lion sleep with all those people singing "A weem
oh way!" at the top of their lungs?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »