Re: Api idés
jan <[email protected]>
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Tom, I think the low level protocol must handle all simple set/get parms as in snmp, and also add/remove objects in all modules. cmds that need a parser and syntax/check should not be in low level. Alexandres new CLI modul (command) should be on top of a low level api instead. No need to add commands that can be a serial of requests in low level api. Complex cmd like <verb><object><ALL> should be in next layer. Other high level like feed data to a table or graph client need another class of high level cmds. Like "start/stop monitor interface eth0" or "start monitor vrrp_log/debug_log/etc". should eventual be in Lowlevel because that is like "multiple get" but in one request. And reuse Alex´s fine scheduler/multiplexer for sending data/traps to next level until a "end cmd" is received or socket is closed. Or it should be implemented also in next level with it's own scheduler but we should not need to polling everything in lower level. snmp should be on top of low level api like converting to snmp scope from linux. Api must have sufficient functionality to meat that. Api will help Keepalived to be more robust in it's main task, and easier to maintain. 2015-05-09 20:04 skrev Tom Limoncelli: > Before deciding what the command protocol should look like, we should > discuss what kind of commands we are expecting it to support. > > I recently built some tools for managing keepalived and did it all > through SNMP. The verbs were "read all", "set value", "get value". > On top of that I built a set of commands: become master, disable VRRP > instance, dump config, etc. If you notice, the first set were very > similar to the SNMP walk/get/set commands. The second set were > high-level tasks that I needed to accomplish. > > Would the control channel be used for low-level verbs like get/set or > high-level verbs like "become master"/"disable", etc? > > Tom > > -- > Email: [email protected] Work: [email protected] > Skype: YesThatTom > Blog: http://EverythingSysadmin.com > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across > Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable > Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Keepalived-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/keepalived-devel -- cheers /Jan Holmberg ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Keepalived-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-devel