-
Notifications
You must be signed in to change notification settings - Fork 1
Push tcp #2
Commits on Dec 7, 2017
-
Configuration menu - View commit details
-
Copy full SHA for d632ac4 - Browse repository at this point
Copy the full SHA d632ac4View commit details -
Dereference CLP tcp socket after hangup
We have a small leak here, that clp sockets keep referenced after the peer closed. Fix.
Configuration menu - View commit details
-
Copy full SHA for c908546 - Browse repository at this point
Copy the full SHA c908546View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f58943 - Browse repository at this point
Copy the full SHA 0f58943View commit details -
Import Donald::Select into script
The design of Donald::Select makes use of Donald::Callback objects, which are objects conainting a sub and call arguments. However, because of the pattern sub do_something_later() { my ($cb_or_sub,@args)=@_; $store_callback_somehere=new Donald::Callback($cb_or_sub,@args); } do_something_later(\&callback,$arg1,$arg2) the caller doesn't have a reference to the Donald::Callback object, which makes its diffucult to identify it, e.g. to cancel the callback. We want to change the design to accept only references to subs as callbacks. Instead of passing arguments, we exepect the caller to make use of closures to pass data to the callback if needed. sub do_something_later() { my ($cb)=@_; $store_callback_somewhere=$cb; } do_something_later(sub{callback($arg1,$args)}); Instead of changing the API of Donald::Select, we import the code directly into clusterd to make the modifications here.
Configuration menu - View commit details
-
Copy full SHA for 26bc5ad - Browse repository at this point
Copy the full SHA 26bc5adView commit details -
Rename Donald::Select to My::Select
Use the namespace My:: for packages declared inside the main script.
Configuration menu - View commit details
-
Copy full SHA for 35aea6f - Browse repository at this point
Copy the full SHA 35aea6fView commit details -
Remove declarations no longer needeid after import
We imported some lines which do no longer have a function now. Remove them.
Configuration menu - View commit details
-
Copy full SHA for 23ab0c9 - Browse repository at this point
Copy the full SHA 23ab0c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20de356 - Browse repository at this point
Copy the full SHA 20de356View commit details -
Non-functional change to bring source into sync with another working branch.
Configuration menu - View commit details
-
Copy full SHA for 7ed96d6 - Browse repository at this point
Copy the full SHA 7ed96d6View commit details -
Use refenerces to subs as callback arguments. If the caller wants to pass additional arguments, he can use closures.
Configuration menu - View commit details
-
Copy full SHA for 3901aa7 - Browse repository at this point
Copy the full SHA 3901aa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa4a96e - Browse repository at this point
Copy the full SHA fa4a96eView commit details -
This hash is not used but it prevents these sockets to be able to be closed by running out of scope.
Configuration menu - View commit details
-
Copy full SHA for e61ecda - Browse repository at this point
Copy the full SHA e61ecdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 01e9dc4 - Browse repository at this point
Copy the full SHA 01e9dc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 676ca6d - Browse repository at this point
Copy the full SHA 676ca6dView commit details -
Add command "clusterd push files..."
The command "clusterd push file..." has a new syntax with a command verb. (as opposed to "clusterd --push file") The push command is distributed via the area routers to the cluster daemons on all nodes. It is intended that the cluster daemons call back over tcp to the originator to pull the file if needed.
Configuration menu - View commit details
-
Copy full SHA for 305be8a - Browse repository at this point
Copy the full SHA 305be8aView commit details -
When a daemon receices a push command, it checks whether it already has the offered file or not. If not, it calls back to the daemon where the push originated and pulls the file over tcp.
Configuration menu - View commit details
-
Copy full SHA for 8195517 - Browse repository at this point
Copy the full SHA 8195517View commit details -
Implement the server side to pull a file over tcp.
Configuration menu - View commit details
-
Copy full SHA for fee25eb - Browse repository at this point
Copy the full SHA fee25ebView commit details -
Increase TCP timeout from 5 to 30
While 5 seconds seems to be enough for normal behaviour, we might need more time if the daemon is slowed down .e.g. by strace.
Configuration menu - View commit details
-
Copy full SHA for 1b1370d - Browse repository at this point
Copy the full SHA 1b1370dView commit details -
Increase listen queue size for clp port
With 234 hosts pulling a file we failed to service a single on with the old setting listen=1.
Configuration menu - View commit details
-
Copy full SHA for d1e725e - Browse repository at this point
Copy the full SHA d1e725eView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.