Thinking Chen
Thinking Chen
提供启停的 Rest 服务,具体处理逻辑: * 在表 notebook 中新增字段,代表是否启动,默认为 1 启动。 ```sql ALTER TABLE submarine.notebook ADD started TINYINT(1) DEFAULT 1; ``` * 提供 启动/停止 的 Rest 接口。 关闭接口会将 `started` 设置为 0。同时,删除指定的 `notebooks.kubeflow.org`...
如何实现自动启停 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`。 自动任务扫描不活跃的持续事件,默认为分钟级别,默认为...
Add a JIRA issue in https://issues.apache.org/jira/browse/SUBMARINE-1309
@pingsutw If we use istio, do we have a plan to delete the dependency of traefik, please?
Close this issue due to a fix PR https://github.com/apache/submarine/pull/722
Hi~ Thanks for your contribution. Can we replace `app.kubernetes.io/version` value using a consistent method? I personally don't think hard-coding the version is a good way. Another question is whether we...
```java // Debug LOG.info("//////////////////// setupJettyServer Debug //////////////////"); LOG.info("SUBMARINE_SERVER_JETTY_THREAD_POOL_MAX: " + Integer.toString(conf.getInt(SubmarineConfVars.ConfVars.SUBMARINE_SERVER_JETTY_THREAD_POOL_MAX))); ``` If we explicitly use debug log in this part, I suggest changing the log level to debug/trace, for...
```yaml jdbc.url: "jdbc:mysql://127.0.0.1:3306/submarine?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&allowMultiQueries=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=UTC&useTimezone=true&useLegacyDatetimeCode=true" ``` If we choose to replace XML configuration based on ConfigMap, I suggest changing `127.0.0.1` to `MySQL` service name. And it is better to provide a method/solution...
```java ConfVars(String varName, VarType type) { switch(type) { case STRING: this.varName = varName; this.varClass = String.class; if (varName == "submarine.server.ssl.key.manager.password" || varName == "submarine.server.ssl.truststore.path" || varName == "submarine.server.ssl.truststore.type" || varName...
@chiaoymir How's the PR going now? Hope the relevant CRDs can be upgraded to the latest version.