| 1234567891011121314151617181920212223242526272829 |
- package containers
- import log "github.com/sirupsen/logrus"
- func (r *Registry) DoFusing() {
- /*//先处于熔断状态 (应用层的uprobes将停止attach)
- r.isFusing = true
- //再关闭应用层的uprobes
- for pid, c := range r.containersByPid {
- if c != nil {
- c.detachUprobes(pid)
- }
- }
- //最后关闭内核层的tracepoint、kprobe
- r.tracer.UnlinkEbpfProg()*/
- log.Infof("-----DoFusing will to execute fuse operates -----\n")
- }
- func (r *Registry) DoResume() error {
- /*//先开启内核层的tracepoint、kprobe
- if err := r.tracer.LinkEbpfProg(); err != nil {
- return err
- }
- //再处于非熔断状态 (应用层的uprobes将开启attach)
- r.isFusing = false*/
- log.Infof("-----DoResume will to execute resume operates -----\n")
- return nil
- }
|