cdmikechen edited a comment on issue #853:
URL: https://github.com/apache/submarine/issues/853#issuecomment-1004659493


   如何实现自动启停
   
   1. 配置相关参数 `submarine.notebook.prometheus.enable`。
   
      是否可支持采集 `NoteBook` 的 Prometheus 指标。如果开启,在 submitter 为 k8s 的时候,会自动注册 
`PodMonitor`。
   
   2. 配置相关参数 `submarine.notebook.prometheus.labels`。
   
      配置扫描的标签,默认为空,可支持的描述方式为:`k8s-app-pod:true,k8s-app-pod2:true`,用逗号隔开
   
   3. 配置相关参数 `submarine.server.tasks.autostop.enable`。
   
      是否支持 `NoteBook` 自动关闭,默认为关闭。该参数需要在 `submarine.notebook.prometheus.enable` 
启动后才可实现此服务。
   
   4. 配置相关参数 `submarine.server.tasks.autostop.duration`。
   
      自动任务扫描不活跃的持续事件,默认为分钟级别,默认为 30 分钟。该参数需要在 
`submarine.notebook.prometheus.enable` 启动后才可实现此服务。
   
   5. server 端新增可轮训的调度任务,基于分钟间隔进行调度任务。
   
      按照 `NoteBook` 资源去扫描不活跃的事件,当超过当前不活跃的时间,系统调用关闭接口关闭该 `NoteBook`。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to