Service management of Sage - D
|
09-07-2016, 05:35 PM
Post: #10
|
|||
|
|||
RE: Service management of Sage
(07-12-2016 05:54 PM)YU_Xinjie Wrote: goal Sage needs to be started automatically by glad for a batch of samples (dataflows). It is okay to have a user manually start it at present. But this is not the way we want for the future. It adds a human operation. An extra human operation makes the software a bit less easy to use, and a whole lot easier to make a mistake. So, when designing, you can make compromises now, but keep in mind what we want in the long run. Quote:The script would replace the current start.sh/stop.sh/status.sh in the future. This is good thinking -- using one way, not two ways, to do one task. Quote:[quote] This is too heavyweight -- it may even disrupt Sage if it is busy. Sending a file takes 2-3s. This is considered long/heavyweight. OK to keep the current design if it has worked. But please be aware of latency in a pathetic way -- otherwise our software would be as slow as Hadoop in 2 years. Quote:1. This is fine if all are sage_user. Quote:copy private key of sage_user@sage_portal into $gb/conf/sage_key $gb is owned by glad_user and all operative users can access it. So this is a security vulnerability. OK now. But make a TODO to fix it later. Quote:Then glad operative user & sage_user can use sage_key to execute remote command to sage_user@sage_portal. How (a convar like glad_portal?) Have we made sure such a varaible must exist in $gb/conf/config.sh. If not, please add a note there "need implement" so that we know to create a TODO item and implement this later after this design is endorsed. Quote:3. I prefer to create a convar like glad_sage_user and store it in $gb/conf/config.sh Quote:4. let sage_user@sage_portal can password-less login glad_user@glad_portal. That's fine -- we assume sage_user is no a human operator and can be a powerful guy. Quote:start sage What if the wait_sage_start fails? We need a way to check Sage has started. I thought this is what I thought you were doing. But it looks like here if auntie continues to fail the wait still completes without an error halt. Quote:stop sage OK. Quote:status sage OK. In the future, we should consider using autnie to directly query Sage to get the status. |
|||
« Next Oldest | Next Newest »
|
- View a Printable Version
- Send this Thread to a Friend
- Subscribe to this thread
- Show the subscribers of this thread:
- Add subscribers to this thread: