Comments (6)
I get similar issues the second i get a little load on the search:
….rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb: 644:in `initialize'
….rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb: 644:in `open'
….rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb: 644:in `block in connect'
…/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/timeout.rb: 44:in `timeout'
…/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/timeout.rb: 89:in `timeout'
….rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb: 644:in `connect'
….rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb: 637:in `do_start'
….rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/http.rb: 626:in `start'
…y-1.9.2-p290/gems/tanker-1.1.4/lib/indextank_client.rb: 48:in `execute'
…y-1.9.2-p290/gems/tanker-1.1.4/lib/indextank_client.rb: 15:in `GET'
…y-1.9.2-p290/gems/tanker-1.1.4/lib/indextank_client.rb: 183:in `search'
…m/gems/ruby-1.9.2-p290/gems/tanker-1.1.4/lib/tanker.rb: 113:in `search'
…m/gems/ruby-1.9.2-p290/gems/tanker-1.1.4/lib/tanker.rb: 244:in `search_tank'
as this is evaluation only for now, the index is incredibly small (21 records..), but it seems it does not like to be hit to quickly in a row...
from tanker.
It would be cool to have better error recovery in case of a fail I agree
from tanker.
In my case, the failure is definitely related to how the connection is being done. I've tried using the tanker gem (which functionally I prefer over the others), thinkingtank and the original indextank gems, and the only gem having this issue when a lot of searches are pushed through it is unfortunately tanker gem.
from tanker.
From the stack trace the error seems to be happening beyond the gems scope on net/http. There could be better handling for this errors. Can you give me information on which exeptions are you getting so I can handle those specifically?
Another recomendation is to upgrade to using ruby 1.9.2 its far more stable than 1.9.1
from tanker.
Actually we are using ruby 1.9.2, the folder structure is just a bit weird.
Small idea on the top of my head, wouldn't it be possible to put all the updating of the indextank base into a delayed job ?
I do not care for my part if the indexing is not instant.
from tanker.
of course that why tanker does not assume anything of your model, you can drop the update_index call anywhere!
from tanker.
Related Issues (20)
- How to sort results? HOT 1
- DEPRECATION WARNING: Yajl's JSON gem compatibility API is going to be removed in 2.0 HOT 1
- Can tanker drop records that can't be found? HOT 4
- can't search for words with special chars HOT 2
- Configuration HOT 1
- Facets
- cannot connect to index tank on other port besides 80
- AutoComplete
- rake tanker:functions is not finding defined fnctions HOT 1
- Feature request: access to `query_relevance_score` HOT 1
- Tanker::Utilities.clear_all_indexes throws an exception
- Search through several models HOT 1
- Model.tanker_reindex exception: Invalid document size. It shouldn't be bigger than 100KB. Got 103720 bytes HOT 1
- undefined method `conditions' (Rails 3.2.12, Tanker 1.1.6) HOT 3
- search_tank alters the options hash
- IndexTank::HttpCodeException: Incorrect api call HOT 1
- "indexable?" does not work HOT 1
- Facets?
- Model.tanker_reindex does not clear current index. Just updates?
- How do i define multiple values for category, and then search for it? 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 tanker.