RedisTimeSeries and AOF

16 views
Skip to first unread message

Van Zyl Kruger

unread,
Apr 2, 2020, 10:36:46 AM4/2/20
to RedisTimeSeries Discussion Forum
When I create the following container the timeseries module does not work:
docker run -d -p 6379:6379 -it -v redis_data:/data --name redistimeseries --restart=always redislabs/redistimeseries --appendonly yes

When I remove the --appendonly yes it works fine.

How would I persist the data to a volume mounted to the host, is it supported?

Your help will be much appreciated.

Kind Regars,
Van Zyl Kruger

Danni Moiseyev

unread,
Apr 2, 2020, 11:57:10 AM4/2/20
to Van Zyl Kruger, RedisTimeSeries Discussion Forum
Hi Van,
It is supported, can you provide the redis log output?

--
You received this message because you are subscribed to the Google Groups "RedisTimeSeries Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redistimeseri...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/redistimeseries/137b5b4f-fd62-40f0-88cc-fa4870ee53e5%40googlegroups.com.


Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more Click Here.

Van Zyl Kruger

unread,
Apr 2, 2020, 12:05:21 PM4/2/20
to RedisTimeSeries Discussion Forum
Not much that I can see:

1:C 02 Apr 2020 16:03:28.748 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

1:C 02 Apr 2020 16:03:28.748 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=1, just started

1:C 02 Apr 2020 16:03:28.748 # Configuration loaded

_._

_.-``__ ''-._

_.-`` `. `_. ''-._ Redis 5.0.5 (00000000/0) 64 bit

.-`` .-```. ```\/ _.,_ ''-._

( ' , .-` | `, ) Running in standalone mode

|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379

| `-._ `._ / _.-' | PID: 1

`-._ `-._ `-./ _.-' _.-'

|`-._`-._ `-.__.-' _.-'_.-'|

| `-._`-._ _.-'_.-' | http://redis.io

`-._ `-._`-.__.-'_.-' _.-'

|`-._`-._ `-.__.-' _.-'_.-'|

| `-._`-._ _.-'_.-' |

`-._ `-._`-.__.-'_.-' _.-'

`-._ `-.__.-' _.-'

`-._ _.-'

`-.__.-'

1:M 02 Apr 2020 16:03:28.750 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.

1:M 02 Apr 2020 16:03:28.750 # Server initialized

1:M 02 Apr 2020 16:03:28.750 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.

1:M 02 Apr 2020 16:03:28.750 * Ready to accept connections




On Thursday, April 2, 2020 at 8:57:10 AM UTC-7, Danni Moiseyev wrote:
Hi Van,
It is supported, can you provide the redis log output?

On Thu, Apr 2, 2020 at 5:36 PM Van Zyl Kruger <vanzyl...@gmail.com> wrote:
When I create the following container the timeseries module does not work:
docker run -d -p 6379:6379 -it -v redis_data:/data --name redistimeseries --restart=always redislabs/redistimeseries --appendonly yes

When I remove the --appendonly yes it works fine.

How would I persist the data to a volume mounted to the host, is it supported?

Your help will be much appreciated.

Kind Regars,
Van Zyl Kruger

--
You received this message because you are subscribed to the Google Groups "RedisTimeSeries Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redisti...@googlegroups.com.

Van Zyl Kruger

unread,
Apr 2, 2020, 12:08:14 PM4/2/20
to RedisTimeSeries Discussion Forum
And when I remove the --appendonly yes:

    

1:C 02 Apr 2020 16:07:23.661 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

1:C 02 Apr 2020 16:07:23.661 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=1, just started

1:C 02 Apr 2020 16:07:23.661 # Configuration loaded

_._

_.-``__ ''-._

_.-`` `. `_. ''-._ Redis 5.0.5 (00000000/0) 64 bit

.-`` .-```. ```\/ _.,_ ''-._

( ' , .-` | `, ) Running in standalone mode

|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379

| `-._ `._ / _.-' | PID: 1

`-._ `-._ `-./ _.-' _.-'

|`-._`-._ `-.__.-' _.-'_.-'|

| `-._`-._ _.-'_.-' | http://redis.io

`-._ `-._`-.__.-'_.-' _.-'

|`-._`-._ `-.__.-' _.-'_.-'|

| `-._`-._ _.-'_.-' |

`-._ `-._`-.__.-'_.-' _.-'

`-._ `-.__.-' _.-'

`-._ _.-'

`-.__.-'

1:M 02 Apr 2020 16:07:23.663 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.

1:M 02 Apr 2020 16:07:23.663 # Server initialized

1:M 02 Apr 2020 16:07:23.663 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.

1:M 02 Apr 2020 16:07:23.663 * Module 'timeseries' loaded from /usr/lib/redis/modules/redistimeseries.so 

1:M 02 Apr 2020 16:07:23.663 * Ready to accept connections 

Van Zyl Kruger

unread,
Apr 3, 2020, 9:26:28 AM4/3/20
to RedisTimeSeries Discussion Forum
What do you think?  I love this module but without AOF persistence on Docker I cannot use it and will revert back to my previous sorted set solution.  I work for a large mining company and we use it as our Edge's persistence layer for Data Science and IIoT.


On Thursday, April 2, 2020 at 8:57:10 AM UTC-7, Danni Moiseyev wrote:
Hi Van,
It is supported, can you provide the redis log output?

On Thu, Apr 2, 2020 at 5:36 PM Van Zyl Kruger <vanzyl...@gmail.com> wrote:
When I create the following container the timeseries module does not work:
docker run -d -p 6379:6379 -it -v redis_data:/data --name redistimeseries --restart=always redislabs/redistimeseries --appendonly yes

When I remove the --appendonly yes it works fine.

How would I persist the data to a volume mounted to the host, is it supported?

Your help will be much appreciated.

Kind Regars,
Van Zyl Kruger

--
You received this message because you are subscribed to the Google Groups "RedisTimeSeries Discussion Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redisti...@googlegroups.com.

Danni Moiseyev

unread,
Apr 7, 2020, 8:16:58 AM4/7/20
to Van Zyl Kruger, RedisTimeSeries Discussion Forum
Hi Van,
Because you pass a different set of argument list to redis its overrides the load module argument, here how to pass both load module and AOF flags:
docker run -d -p 6379:6379 -it -v /tmp/redis_data:/data --name redistimeseries --restart=always redislabs/redistimeseries --loadmodule /usr/lib/redis/modules/redistimeseries.so --appendonly yes

Cheers,
Danni.

To unsubscribe from this group and stop receiving emails from it, send an email to redistimeseri...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/redistimeseries/44e6fcc3-1112-4999-a56c-f6514a045727%40googlegroups.com.

Van Zyl Kruger

unread,
Apr 7, 2020, 8:59:59 AM4/7/20
to RedisTimeSeries Discussion Forum
Thanks that's great.

I previously used Redis Desktop Manager as a UI to show people what Redis is capable of.  Do you know any Redis UIs that supports time series?

Kind Regards,
Van Zyl

Guy Korland

unread,
Apr 7, 2020, 1:31:34 PM4/7/20
to RedisTimeSeries Discussion Forum
RedisInsight has a nice time series view:
Reply all
Reply to author
Forward
0 new messages