redis-io icon indicating copy to clipboard operation
redis-io copied to clipboard

Autocomplete demo broken

Open PowerKiKi opened this issue 10 years ago • 13 comments

The autocomplete demo mentioned on http://redis.io/documentation and living on http://autocomplete.redis.io/ is broken. The AJAX request response is the following PHP error:

Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:10001 (Connection refused) in /var/virtual/autocomplete.redis.io/httpdocs/redis.php on line 29

Fatal error: Cannot open socket to 127.0.0.1:10001, error 111. in /var/virtual/autocomplete.redis.io/httpdocs/redis.php on line 37

This issue was already mentionned a few months ago on https://gist.github.com/antirez/11126283. We should consider fixing the problem, or removing the demo altogether.

PowerKiKi avatar Oct 03 '14 07:10 PowerKiKi

Any chance this demo could make a comeback?

blainsmith avatar Apr 03 '15 18:04 blainsmith

@badboy Should we link to your http://redis-complete.herokuapp.com/?

djanowski avatar Jul 29 '15 13:07 djanowski

Sure, it's running on free heroku, so it hasn't the most resources, but it should be fine.

badboy avatar Jul 29 '15 13:07 badboy

Two concerns:

  1. It's on free Heroku, so if it gets traffic, they may force you to pay (or put the app into "recharge" mode).
  2. The example with ~1500 items is less compelling than the one with 8MM items. On the other hand, 8MM lines of Linux kernel source code is not very interesting for an autocomplete; you have to know what to look for in advance.

If we got a bigger Redis instance for this example, would you adapt it so that it uses a bigger data set, but something known by everyone? Maybe a list of cities or something like that. Also it would be cool to show in the demo how much memory Redis is consuming for that data set. What do you think?

djanowski avatar Jul 29 '15 14:07 djanowski

Fine with me. Maybe @itamarhaber can set me up with a bigger instance. Hosting the application on my server would be fine, just not Redis itself. :)

badboy avatar Jul 29 '15 14:07 badboy

Sure thing - 100MB or bigger?

Since I can't manipulate Heroku's billing (yet :smiling_imp:), you'll need to use a Redis Cloud direct account instead of the add-on. Sign up, create a free instance and lmk the account id.

itamarhaber avatar Jul 29 '15 14:07 itamarhaber

Where is Redis Labs Cloud hosted? It would be great not to have a big latency between the app and Redis.

djanowski avatar Jul 29 '15 14:07 djanowski

@djanowski all over AWS and the rest of the public IaaSs, but if the app's running on Heroku US then AWS us-east-1 is the region (choose-able when creating the database).

itamarhaber avatar Jul 29 '15 14:07 itamarhaber

Well, I could run the application on my own server, so EU based would be great. Will do the signup tomorrow or friday.

badboy avatar Jul 29 '15 14:07 badboy

@badboy that's there too :earth_americas: + :earth_africa: + :earth_asia:

itamarhaber avatar Jul 29 '15 14:07 itamarhaber

Anybody want to make progress on this, or should we unlink the example?

djanowski avatar Nov 30 '16 15:11 djanowski

The offer for free storage still stands and I can probably secure sponsorship for the compute resources if needed.

itamarhaber avatar Nov 30 '16 16:11 itamarhaber

By now, I believe the link should be removed from the documentation page. If it was not solved in the past 3 years, I don't think it would be anytime soon. And as is, it doesn't have much value. Better spend 5 minutes removing the link, and closing this issue.

PowerKiKi avatar Nov 15 '17 07:11 PowerKiKi