I want to use RestHighLevelClient on different clusters with commands which are not supported by Cross Cluster mechanizem (for example close and open index).
My question is if I use more than one instance of RestHighLevelClient for every cluster it will keep connections open for every cluster? (to be ensure I didn't choke the application)
Is RestHighLevelClient keep connections open?
2.3k Views Asked by Lupidon At
1
There are 1 best solutions below
Related Questions in ELASTICSEARCH
- How do I only replace the first instance of a number in a string?
- Translate rangeOfString from Objective-c To Swift
- swift range greater than lower bound
- What is the equivalent value for NSRange.location on the Range Object within Swift 3?
- Check if strings in an array contain a punctuation or numeric substring?
- Objective C - NSRange and rangeOfString
- Xcode:(user defined runtime attribute)Range with minus value. Alternative?
- NSRange from Swift Range?
- How to use deleteCharactersInRange?
- Convert Range<Int> to Range<String.Index>
Related Questions in RESTHIGHLEVELCLIENT
- How do I only replace the first instance of a number in a string?
- Translate rangeOfString from Objective-c To Swift
- swift range greater than lower bound
- What is the equivalent value for NSRange.location on the Range Object within Swift 3?
- Check if strings in an array contain a punctuation or numeric substring?
- Objective C - NSRange and rangeOfString
- Xcode:(user defined runtime attribute)Range with minus value. Alternative?
- NSRange from Swift Range?
- How to use deleteCharactersInRange?
- Convert Range<Int> to Range<String.Index>
Related Questions in ELASTICSEARCH-REST-CLIENT
- How do I only replace the first instance of a number in a string?
- Translate rangeOfString from Objective-c To Swift
- swift range greater than lower bound
- What is the equivalent value for NSRange.location on the Range Object within Swift 3?
- Check if strings in an array contain a punctuation or numeric substring?
- Objective C - NSRange and rangeOfString
- Xcode:(user defined runtime attribute)Range with minus value. Alternative?
- NSRange from Swift Range?
- How to use deleteCharactersInRange?
- Convert Range<Int> to Range<String.Index>
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
by looking at various resources, it seems
RestHighLevelClientkeeps the connection open unless you explicitly callclient.close();on it.From the official RestHighLevelClient initialization
In your case, if you having a lot of ES clusters and creating multiple
RestHighLevelClientthan as you are guessing, it might choke your application due to the hold of threads and its resources so you should explicitly call theclosewhich would require more time when you again create it but would not choke your application in most of the cases.I would suggest you do some resource benchmarking on your application and based on your trade-off choose the best possible approach.
closeclients frequently, this would not require over-allocating resources but when you create a new client for your request, latency will be more.