Comments (4)
Hi,
Just an added info, I have tried rotating the redis.log of one of our server
and noticed a few seconds where we had a PING alert for Redis on the server. I
am not sure if this is a normal scenario or should the logs also cause the
blockage on Redis when it is Rotated. If rotating the logs will cause this type
of scenario, please advice on alternative option we can rotate logs and avoid
it from getting big.
Thanks,
Jimson
Original comment by [email protected]
on 8 Sep 2011 at 1:06
from redis.
This is a known issue with Redis AOF log rewriting. You linked issue 602, that
is the correct one.
Your hang is caused by Linux atomically renaming files and it causing a large
amount of disk IOs. Using the SAVE configuration option may help some, but
forking a large process can also hang Redis, it still does an atomic rename
(though the replaced file is smaller, so this isn't as big a problem as it is
with AOF), and you only have your data persisted once every X minutes, instead
of every second.
Original comment by [email protected]
on 9 Sep 2011 at 10:42
from redis.
Hi Josiah,
Thank you so much for the information. I had also been doing some reading and
they are pointing to same problem. We are also additional research for our
setup to have a work around this issue.
I would like to check if the log rotation should also have the same affect as
to renaming a AOF file. I have tried doing a log rotation "redis.log" and I
have noticed the same problem. Not really sure if this is a know problem since
I have not encountered a thread having the same information. I am still doing
additional research on this item. As of now the item I am thinking as a work
around is to clear the log file after copying it. Some logs will be lost during
the process but I was thinking this will avoid replacing the current redis.log.
I would like to get your opinion if this approach is OK. Thank you in advance.
Regards,
Jimson
Original comment by [email protected]
on 10 Sep 2011 at 1:07
from redis.
Hello Jimson, Log rewriting should not have the same problem AFAIK, but it is
worth investigating. Are you sure that the delay you are seeing is related to
log rewriting and not AOF rewriting instead? (or .rdb creation in background?).
Salvatore
Original comment by [email protected]
on 12 Sep 2011 at 2:16
from redis.
Related Issues (20)
- BRPOPLPUSH return type is contingent on success HOT 2
- A 8G .aof file lead redis loading so slowly... HOT 3
- The command "config get databases" does not return
- Allow SORT Command to STORE results as sorted set HOT 1
- Even after flushall maxmemory shows the previous max value. HOT 10
- [FEATURE REQUEST]HMSETX/HSETX HOT 3
- BRPOPLPUSH and a single LPUSH with several items doesn't work well together HOT 2
- [FEATURE REQUEST]maxmemory-policy HOT 4
- The issue about the special scenario in redis-2.2.12 HOT 5
- setex silent data loss when using unix time for expiration value HOT 4
- Need Git Tag for 2.2.13 HOT 1
- DBNUM Command HOT 4
- EXPIREAT make test fails
- Hello, antirez. At what time release b-tree version disk store? HOT 1
- make test error CentOS HOT 2
- Could not connect to Redis at 127.0.0.1:6379: Connection refused HOT 1
- configure bind two interface
- minor change (call to id instead of whoami) in install script HOT 1
- /
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis.