Spark workspace settings 工作区 Spark 设置
Workspace admins choose the default pool, environment and job rules for Spark. 工作区管理员决定 Spark 的默认池、默认环境和作业规则。
Every new workspace gets a starter pool. Switch to a custom pool only when a job needs specific node sizes, and expect slower session start.
Starter pool 入门池
- Session start 启动速度
- Seconds 几秒
- Node sizing 节点大小
- Handled for you 自动
- Autoscale 自动缩放
- Max nodes only 只调上限
- Needs 前提
- Nothing 无
Custom pool 自定义池
- Session start 启动速度
- About 3 minutes 约 3 分钟
- Node sizing 节点大小
- You choose 自己选
- Autoscale 自动缩放
- Optional 可开关
- Needs 前提
- Capacity allows custom pools 容量允许
The Jobs tab controls admission. Optimistic job admission is the default; turning on Reserve maximum cores switches it off. Session timeout sets when idle notebook sessions expire.
每个新工作区都自带入门池。只有作业需要特定节点规格时才换自定义池,代价是会话启动变慢。作业页控制准入:默认是乐观准入,打开“预留最大核心”就关掉它;会话超时决定空闲笔记本会话多久过期。
Key points
- Starter pool: prehydrated, sessions start in seconds 入门池:预热好,几秒启动
- Custom pool: you size nodes, autoscale and executors 自定义池:自己定节点、自动缩放和执行器
- Default environment: runtime and libraries for all items 默认环境:统一的运行时和库
- High concurrency: several notebooks share one session 高并发:多个笔记本共用一个会话
- Max job lifetime: cancels user jobs that run too long 最长作业时长:超时自动取消用户作业
Exam trap
Only the workspace Admin role can change these settings, and custom pools also need the capacity admin to allow them. 只有工作区管理员能改;自定义池还要容量管理员放行。