Skip to content

Server restart#2187

Closed
joshmoore wants to merge 8 commits intoome:dev_5_0from
joshmoore:server-restart
Closed

Server restart#2187
joshmoore wants to merge 8 commits intoome:dev_5_0from
joshmoore:server-restart

Conversation

@joshmoore
Copy link
Copy Markdown
Member

Commands for more simply restarting individual server components (services). See discussion under #2173 (comment) for the current state of this branch and @sbesson's opinion.

Current usage:

bin/omero admin kill Processor-0  # Restarts the processor

/cc @manics

@manics
Copy link
Copy Markdown
Member

manics commented Mar 20, 2014

👍 for admin ice shortcuts, agree with @sbesson that kill is misleading though. Are we're making multi-node grid servers a higher priority over the next few months? If so then perhaps we should hold off for a bit.

@joshmoore
Copy link
Copy Markdown
Member Author

Agreed. No rush on this PR. More API design.

@jburel jburel added the dev_5_0 label Mar 21, 2014
@mtbc
Copy link
Copy Markdown
Member

mtbc commented Mar 30, 2014

Label on-hold?

@joshmoore
Copy link
Copy Markdown
Member Author

@manics / @sbesson / @kennethgillen / et al: time to come back to this? Suggested names?

@kennethgillen
Copy link
Copy Markdown
Member

My gut feeling would be for another parameter, e.g.

bin/omero admin restart does the usual (Blitz, or everything?)
bin/omero admin restart Processor-0 restarts the Processor-0 process

@joshmoore
Copy link
Copy Markdown
Member Author

Agreed, but that would unfortunately be a breaking change. We could however do:

bin/omero admin restart --service Processor-0

@manics
Copy link
Copy Markdown
Member

manics commented Apr 8, 2014

Compared to bin/omero admin ice server stop Processor-0 it avoids the mention of ice and is one less word to type, but still requires the potentially confusing --service argument. I'm not sure it's worth it just for this.

@joshmoore
Copy link
Copy Markdown
Member Author

That sounds like a motion to close? Seconds?

@joshmoore
Copy link
Copy Markdown
Member Author

No one? (The benefit in terms of keys typed would be that stop --service could also do the disable, I guess)

@manics
Copy link
Copy Markdown
Member

manics commented Apr 11, 2014

Could we make a semi-breaking change so that omero admin restart XXX behaves as at present if XXX is a valid option, but otherwise attempts to do the ice restart command with a warning? i.e. make the --service argument optional.

@joshmoore
Copy link
Copy Markdown
Member Author

where XXX is Processor-0 etc? interesting....

@manics
Copy link
Copy Markdown
Member

manics commented Apr 11, 2014

Maybe also add --target and --file arguments too for completeness, and in the event of ambiguity (i.e. no --argument was passed and there's no matching target/file/server) you either return an error or default to one of those behaviours?

The first argument (`[file]`) is now either a service
or a file. If a service is found, the *next* argument
can be a file. As well:

 * `--service` takes precendence for service choice
 * `--file` stakes precedence for file choice
 * `--target` is appended to other targets
 * `bin/omero admin start Processor-0` calls enable
 * `bin/omero admin stop Processor-0` calls disable and stop
 * `bin/omero admin restart Processor-0` calls stop
@joshmoore
Copy link
Copy Markdown
Member Author

@manics, I've pushed an implementation of your suggestion. This may simply be too confusing to be worthwhile. In which case, let's close and move on. 😄

The use of `_descript` from other methods was
breaking the integration tests since "noise"
was being printed. That has now been supressed.
@manics
Copy link
Copy Markdown
Member

manics commented Apr 30, 2014

Works, though omero restart non-existent unexpectedly restarted the whole server.

@manics
Copy link
Copy Markdown
Member

manics commented Apr 30, 2014

I'm not sure of the best way forward, short of fixing the "No Processor"

@joshmoore
Copy link
Copy Markdown
Member Author

Works, though omero restart non-existent unexpectedly restarted the whole server.

Perhaps make omero restart STRING disallowed and just use omero restart --service ?

I'm not sure of the best way forward, short of fixing the "No Processor"

How does this apply?

@manics
Copy link
Copy Markdown
Member

manics commented Apr 30, 2014

I thought the "No Processor" was the main motivation for wanting this in ASAP #2173 (comment)

@joshmoore
Copy link
Copy Markdown
Member Author

Ah, I see. Certainly the most frequent use (at the moment), but not the only reason to use these. Code changes etc. require a restart as well.

@joshmoore
Copy link
Copy Markdown
Member Author

Closing for lack of clarity. If anyone cares sufficiently we can re-open. Otherwise, perhaps a replacement launching strategy will make it all simpler anyway.

@joshmoore joshmoore closed this May 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants