Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyro 3.16: include in cylc distribution + related improvements #1755

Merged
merged 5 commits into from
Mar 18, 2016

Conversation

matthewrmshin
Copy link
Contributor

Add Pyro 3.16 under lib/Pyro/.

Modify Pyro to memoize socket.gethost* calls with a 1 hour expiry.

  • Add 1 hour expiry to cylc.suite_host as well.

Follow on from #1732.

@matthewrmshin matthewrmshin self-assigned this Mar 9, 2016
@matthewrmshin matthewrmshin added this to the soon milestone Mar 9, 2016
@matthewrmshin
Copy link
Contributor Author

This change is done in 3 stages:

  1. Add Pyro to cylc distribution.
  2. Add memoize functionality to Pyro with similar logic to cylc.suite_host.
  3. Add expiry logic to the singletons for memoizing.

@hjoliver
Copy link
Member

Nice. I guess we can update (simplify) installation documentation in the CUG now.

@matthewrmshin
Copy link
Contributor Author

Comparing master and this branch with strace -e trace=getsockname -f cylc gscan suggests that the change is doing the right thing.

@matthewrmshin
Copy link
Contributor Author

(I'll do a git grep doc/ and see what needs to be updated.)

@matthewrmshin
Copy link
Contributor Author

@hjoliver @benfitzpatrick please review. (It is perhaps easiest to review this change by looking at the individual changesets.)

@hjoliver
Copy link
Member

Review 1: looks good, test battery passes. Tested with a short EXPIRE time. Over to you Ben...

@hjoliver hjoliver assigned benfitzpatrick and unassigned hjoliver Mar 11, 2016
By default, the singletons will expire after 1 hour.
Also:
* Modified *passwordless* ssh to *non-interactive* ssh as requirements.
@matthewrmshin
Copy link
Contributor Author

(Branch re-based against master.)

@matthewrmshin matthewrmshin modified the milestones: next-release, soon Mar 11, 2016
@@ -445,6 +441,12 @@ \section{Required Software}
\item ImageMagick (for image scaling)
\end{myitemize}

Note: Older versions of cylc requires Pyro-3 (Python Remote Objects). Current
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@benfitzpatrick
Copy link
Contributor

One comment, otherwise looks fine to me.

@matthewrmshin
Copy link
Contributor Author

Typo fixed.

benfitzpatrick added a commit that referenced this pull request Mar 18, 2016
Pyro 3.16: include in cylc distribution + related improvements
@benfitzpatrick benfitzpatrick merged commit 344a586 into cylc:master Mar 18, 2016
@matthewrmshin matthewrmshin deleted the pyro branch March 18, 2016 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants