I am using Pyro4 in a distributed system. My problem is that after two networks connect there can be many nameserver. It is ok for me but if any of them is empty (has no objects registered) my network can fail .
This is because I am implementing chord and I need to know if there is any chord node running already (if the empty nameserver responds then two chord rings will be created.
Is there any way to kill a nameserver if it is empty?
My code is in python3. Thanks
Pyro4 kill empty nameserver
289 Views Asked by Gry At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in PYRO
- How do I properly call a Python Pyro client using PHP and Apache web server?
- Global Object in Pyro
- Pyro.Naming.NameServerStarter documentation
- Pyro5 : how to connect between different machines
- Reconnect a running daemon to stdout
- How to add a Seperator in Pyro CMS Navigation
- Unable to import PyroModule
- Pyro and conditional probability
- PyroCMS Tags in Arrays
- Python Pyro4, client dosent see name server which is created in server file
- Python, Pygame, Pyro: How to send a surface over a network?
- Detach a subprocess started using python multiprocessing module
- Kill Windows asynchronous Popen process in 2.4
- HMAC_KEY not set warning
- Python Pyro4 nameserver freezes when adding more than two remote objects
Related Questions in CHORD
- Use SimPy to simulate Chord distributed system
- Celery chord isn't waiting for child tasks (a group of chains)
- Can applications coexist within the same DHT?
- Keeping Client State Up-To-Date In Reagent / Clojurescript
- Chord protocol. Distribuited Hash Table (DHT). Peer to peer. (P2P)
- Celery - How can I run success and error callbacks within a chord?
- Error: Since gap.degree parameter has length larger than 1, it should have same length as the number of sectors
- How to move labels in a chord diagram in R
- Chord diagram with only one path between any two events
- Chord p2p distributed hash table (dht) implementation over http protocol
- Chord network in Shiny overlaying itself
- How Distributed Hash Table in IPFS and Bittorrent prevent abuse?
- UDP_broad_2uni receive ECLIPSE_UDP_SERVER EXCEPTIONHost is down - Android
- Using chords in celery for multiple tasks
- celery chord with a chain callback
Related Questions in PYRO4
- How do I implement multiprocessing on different hosts using Pyro4
- Can't pass constructor parameters from client using pyro4
- Interference between Pyro4 and DDP process communication
- AssertionError while training distributed LdaModel in Gensim
- Error 99 when using Pyro4 on different machiens
- Pyro4 configuration doesn't change
- Shutdown a nameserver in Pyro4 without manual interruption
- Pyro4 [Errno -2]
- How to properly work with third-party libraries in Pyro v.4.63
- How to change keys and values of a dict in pyro4?
- Python Pyro4 - Get client IP
- Pyro4 and plain old data objects
- AttributeError module 'Pyro4' has no attribute 'expose' while running gensim distributed LSI
- flask: RunTimeError: There is no current event loop in thread
- Pyro4 kill empty nameserver
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 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?
Pyro's name server assumes it is running all the time: you never know if there will be someone a bit later that wants to register a new name. If you really need it to auto shutdown, you'll have to either wrap the default name server in some custom code, or use some form of watchdog process that kills the name server if it detects that it has 0 entries.
You can get the number of entries via a regular Pyro call to the nameserver:
ns.count(). For obvious reasons, it's not possible to remotely shutdown the nameserver via such a Pyro API call, hence the need of a watch dog process.