Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install instructions give error at step to install redis on mac #3310

Open
AmandaBirmingham opened this issue Aug 11, 2023 · 21 comments
Open

Comments

@AmandaBirmingham
Copy link
Contributor

The install instructions at

brew install homebrew/versions/redis28

give the command
brew install homebrew/versions/redis28
but Homebrew 4.1.4 (current version as of 08/11/2023) gives the error:
Error: homebrew/versions was deprecated. This tap is now empty and all its contents were either deleted or migrated.

@charles-cowart has indicated that it should be ok to use the latest version of redis instead (current up around 7.0), in which case the command in the install could change to:
brew install redis

@charles-cowart
Copy link
Contributor

I think @antgonza should weigh in.

@wasade
Copy link
Contributor

wasade commented Aug 11, 2023

@charles-cowart, could you verify the redbiom test suite works with 7.0? It would be great if that is the case. On production I think we're using 3.2.6

@AmandaBirmingham, redis is also available from conda-forge

@AmandaBirmingham
Copy link
Contributor Author

These may be the fastest issue responses I've ever seen :) :)

@antgonza
Copy link
Member

FWIW, on my computer I'm using:

$ redis-server --version
Redis server v=5.0.3 sha=00000000:0 malloc=libc bits=64 build=499afec3908d6e99

and everything is working fine. Additionally, I didn't find in my email or notes any reason to keep using that older version.

I'm gonna issue a PR using the latest version and see what happens.

@antgonza
Copy link
Member

Never mind, there are no restrictions in Qiita and the builds have been using higher version for both qiita and redbiom.

@antgonza
Copy link
Member

antgonza commented Jan 9, 2024

Finally getting back to this.

Is it possible to let homebrew install whatever the newest version of redis is? If yes, would everyone agree that this could be a good solution for this issue? If not, what could it be a good solution?

@AmandaBirmingham
Copy link
Contributor Author

Works for me :)

@charles-cowart
Copy link
Contributor

Finally getting back to this.

Is it possible to let homebrew install whatever the newest version of redis is? If yes, would everyone agree that this could be a good solution for this issue? If not, what could it be a good solution?

Agreed, it works for me as well. I believe 'brew install redis' will install the latest by default.

@wasade
Copy link
Contributor

wasade commented Jan 9, 2024

It assumes people use brew though which I think introduces a new developer expectation. Is there a reason the conda-forge build of redis doesn't work?

@wasade
Copy link
Contributor

wasade commented Jan 9, 2024

oh weird, brew is already part of the installation instructions? Is that redundant with conda?

@antgonza
Copy link
Member

antgonza commented Jan 9, 2024

Honestly, I think is historical ... to when things were hard to install in M1/M2 ...

@charles-cowart
Copy link
Contributor

@wasade it is also installable through conda (conda install redis), docker containers, and perhaps even other avenues. As long as the latest version can reliably be used then I don't think it matters so much how it's installed. Pinning the version to 2.x is what it makes it harder to install as it becomes unsupported on most of these installation pathways.

@wasade
Copy link
Contributor

wasade commented Jan 9, 2024

Yes, but we currently assume conda on deploy whereas we do not assume docker or brew (AFAIK).

Pins are hard and should be removed unless needed

@charles-cowart
Copy link
Contributor

Yes, but we currently assume conda on deploy whereas we do not assume docker or brew (AFAIK).

Pins are hard and should be removed unless needed

It sounds like we're all in agreement that this one can be removed then.

@wasade
Copy link
Contributor

wasade commented Jan 9, 2024

Possibly, were you able to perform the check discussed here?

@charles-cowart
Copy link
Contributor

Confirmed the tests do pass using Redis 5.0.3 from the conda environment and using Redis 7.2.4 installed with homebrew. The number of messages sent using pubsub was changed to 1000 to shorten the test time; all other defaults were used. Not sure why two tests were skipped - do you know?

5.0.3:
(redbiom_test) ccowart@Applejack tests % python basic.py
..................ss.....

Ran 25 tests in 0.034s

OK (skipped=2)
(redbiom_test) ccowart@Applejack tests % bash bench.sh
Testing on 127.0.0.1:7379 with 100 clients in parallel, for a total of 100,000 requests per benchmark.
PING: 58356.06 requests/sec.
SET(hello,world): 55115.43 requests/sec.
GET(hello): 56811.69 requests/sec.
INCR(hello): 57226.83 requests/sec.
LPUSH(hello,abc): 57086.33 requests/sec.
LRANGE(hello,0,10): 57221.14 requests/sec.
LRANGE(hello,0,100): 48426.13 requests/sec.
(redbiom_test) ccowart@Applejack tests % ./pubsub -n 1000
Received 1008 messages from 10 writers to 450 readers through 1 channels in 0.00 sec: received inf msg/sec
(redbiom_test) ccowart@Applejack tests % ./websocket
After 0.06 sec: 3,329 messages sent, 10,000 received (100.00%). Instant rate: 169,765/sec, overall rate: 169,765/sec
(redbiom_test) ccowart@Applejack tests % bash curl-tests.sh
Test 1/2: Large PUT upload: generating the key... OK
Sending a PUT request with a large payload... OK
Verifying the upload... OK

Test 2/2: Sending an OPTIONS request... OK
(redbiom_test) ccowart@Applejack tests % python limits.py
test_huge_upload (main.TestHugeUrl) ... ok
test_huge_url (main.TestHugeUrl) ... ok


Ran 2 tests in 0.204s

OK
(redbiom_test) ccowart@Applejack tests %

7.2.4:
(redbiom_test) ccowart@Applejack tests % python basic.py
..................ss.....

Ran 25 tests in 0.030s

OK (skipped=2)
(redbiom_test) ccowart@Applejack tests % bash bench.sh
Testing on 127.0.0.1:7379 with 100 clients in parallel, for a total of 100,000 requests per benchmark.
PING: 53388.40 requests/sec.
SET(hello,world): 53901.44 requests/sec.
GET(hello): 51155.26 requests/sec.
INCR(hello): 53898.65 requests/sec.
LPUSH(hello,abc): 55084.16 requests/sec.
LRANGE(hello,0,10): 54021.09 requests/sec.
LRANGE(hello,0,100): 43617.36 requests/sec.
(redbiom_test) ccowart@Applejack tests % ./pubsub -n 1000
Received 1008 messages from 10 writers to 450 readers through 1 channels in 0.00 sec: received inf msg/sec
(redbiom_test) ccowart@Applejack tests % ./websocket
After 0.05 sec: 3,329 messages sent, 10,000 received (100.00%). Instant rate: 187,385/sec, overall rate: 187,385/sec
(redbiom_test) ccowart@Applejack tests % bash curl-tests.sh
Test 1/2: Large PUT upload: generating the key... OK
Sending a PUT request with a large payload... OK
Verifying the upload... OK

Test 2/2: Sending an OPTIONS request... OK
(redbiom_test) ccowart@Applejack tests % python limits.py
test_huge_upload (main.TestHugeUrl) ... ok
test_huge_url (main.TestHugeUrl) ... ok


Ran 2 tests in 0.207s

OK

@wasade
Copy link
Contributor

wasade commented Jan 9, 2024

I think those are the redis tests, the earlier question was w.r.t. the redbiom test suite though?

@charles-cowart
Copy link
Contributor

I think those are the redis tests, the earlier question was w.r.t. the redbiom test suite though?

doh! You're right, they were the webdis tests. Wrong directory.

@wasade
Copy link
Contributor

wasade commented Jan 9, 2024 via email

@charles-cowart
Copy link
Contributor

test.log
Confirmed redbiom tests completed successfully using Redis 7.2.4

@wasade
Copy link
Contributor

wasade commented Jan 9, 2024

Great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants