-
部分)文档的主要章节。这些内容对 概览 & 教程 中提到的概念进行了扩展,同时还覆盖了一些高级主题。 环境字典 env 运行环境即设置 环境即状态共享 其他考虑 环境变量完整列表 Execution model Execution strategy Defining tasks Defining host lists Intelligently executing tasks with execute Connections Password management Leveraging native SSH config files fab 选项和参数 基本应用 直接执行远程命令 命令行参数 Per-task arguments 配置文件 Fabfile 文件的结构和使用 指定 fabfile 引用 Fabric 定义任务并导入 callable 任务 与远程程序集成 合并 stdout 和 Shell 命令更加 容易 、 更符合 Python 风格 的命令 库(建立于一个更低层次的库)。 自然而然地,大部分用户把这两件事结合着用,使用 Fabric 来写和执行 Python 函数或 task ,以实现与远程服务器的自动化交互。让我们一睹为快吧。 Hello, fab 一个合格的教程少不了这个“惯例”: def hello(): print("Hello world!")
0 码力 |
138 页 |
154.00 KB
| 1 年前 3
-
部分)文档的主要章节。这些内容对 概览 & 教程 中提到的概念进行了扩展,同时还覆盖了一些高级主题。 环境字典 env 运行环境即设置 环境即状态共享 其他考虑 环境变量完整列表 Execution model Execution strategy Defining tasks Defining host lists Intelligently executing tasks with execute Connections Password management Leveraging native SSH config files fab 选项和参数 基本应用 直接执行远程命令 命令行参数 Per-task arguments 配置文件 Fabfile 文件的结构和使用 指定 fabfile 引用 Fabric 定义任务并导入 callable 任务 与远程程序集成 合并 stdout 和 Shell 命令更加 容易 、 更符合 Python 风格 的命令 库(建立于一个更低层次的库)。 自然而然地,大部分用户把这两件事结合着用,使用 Fabric 来写和执行 Python 函数或 task ,以实现与远程服务器的自动化交互。让我们一睹为快吧。 Hello, fab 一个合格的教程少不了这个“惯例”: def hello(): print("Hello world!")
0 码力 |
145 页 |
161.53 KB
| 1 年前 3
-
both the full power of the Kotlin language and the opportunities provided by intermittent code execution in Jupyter notebooks and REPLs. Kotlin for Apache Spark adds a missing layer of compatibility between build scans: You can also find the Kotlin version used in the project right in the build report: Task info: Kotlin language version: 1.9 If you use Gradle 8.0, you might come across some problems simulator booting and shutdown. In 1.9.0, you can now configure whether this flag is used in a Gradle task via the standalone property. By default, the --standalone flag is used so standalone mode is
0 码力 |
3753 页 |
29.69 MB
| 1 年前 3
-
both the full power of the Kotlin language and the opportunities provided by intermittent code execution in Jupyter notebooks and REPLs. Kotlin for Apache Spark adds a missing layer of compatibility between build scans: You can also find the Kotlin version used in the project right in the build report: Task info: Kotlin language version: 1.9 If you use Gradle 8.0, you might come across some problems simulator booting and shutdown. In 1.9.0, you can now configure whether this flag is used in a Gradle task via the standalone property. By default, the --standalone flag is used so standalone mode is
0 码力 |
2049 页 |
45.06 MB
| 1 年前 3
-
Zhong) Software Engineer @ eBay nju_yaho@apache.org Agenda • Overview • Cluster Setup • SQL Execution • Data Cache • Future Apache Ballista is a distributed SQL query engine powered by the Rust different kinds of object stores, like HDFS, S3, Azure, etc • Support data cache and cache aware task scheduling Overview Cluster Setup The cluster consists of one scheduler and a number of executors to the cluster scheduler. SQL Execution • SQL -> DAG (Directed Acyclic Graph) • DAG State Machine • Task Assignment • Event Loop based Processing SQL Execution DAG Generation SQL
0 码力 |
17 页 |
2.66 MB
| 1 年前 3
-
Rewrite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528 12.4.4 SQL Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528 12.4.5 Result Merger Connection Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544 Automatic Execution Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546 12.4.11 Merger Engine . . Explanation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560 12.6.2 Execution Stage Explained . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561 Preparation . .
0 码力 |
602 页 |
3.85 MB
| 1 年前 3
-
(GA),但默认关闭,即一个 ADD INDEX 或 IMPORT INTO 任务 默认只能由一个 TiDB 节点执行。 从 v8.1.0 起,该功能默认开启(tidb_enable_dist_task 默认为 ON)。开启后,分布式执行框架可以调度 多个 TiDB 节点并行执行同一个 ADD INDEX 或 IMPORT INTO 任务,从而充分利用 TiDB 集群的资源,大幅提 36 升这些任务的性能。此外,你还可以通过增加 取值范 围从 [0, �→ 18446744073709551615] �→ 修改 为 (0, 1]。 38 变量名 修改类型 描述 tidb_ �→ enable �→ _dist_ �→ task 修改 默认值 从 OFF 修改为 ON,代 表默认 开启分 布式执 行框架, 从而充 分利用 TiDB 集 群的资 源,大 幅提升 ADD �→ INDEX �→ 和 IMPORT �→ ADD �→ INDEX �→ 操作 可能导 致数据 索引不 一致的 问题, 请在升 级前关 闭分布 式执行 框架 (即将 tidb_ �→ enable �→ _ �→ dist �→ _ �→ task 设置为 OFF), 升级后 再手动 开启。 39 变量名 修改类型 描述 tidb_ �→ service �→ _scope 修改 该变量 的可选 值从 "" 或 background
0 码力 |
4807 页 |
101.31 MB
| 1 年前 3
-
enable �→ _ �→ fast �→ _ �→ create �→ _ �→ table �→ 。 tidb_ �→ enable �→ _ �→ collect �→ _ �→ execution �→ _info 修改 增加控 制是否 维护访 问索引 有关的 统计信 息,默 认值为 ON。 43 变量名 修改类型 描述 tidb_ �→ redact �→ _log 修改 2.2.2.4 配置文件参数 48 配置文件 配置项 修改类型 描述 TiDB instance. �→ tidb_ �→ enable �→ _ �→ collect �→ _ �→ execution �→ _info 修改 增加控制 是否维 护访问索 引有关的 统计信息, 默认值为 true。 TiDB tls- �→ version �→ 修改 该参数不 再支持 "TLSv1 maxPerformance 包含的具体配置。 配置后查看监控,可以看到多余语句减少。 超时参数 TiDB 提供两个与 MySQL 兼容的超时控制参数,wait_timeout 和max_execution_time。这两个参数分别控制与 Java 应用连接的空闲超时时间和连接中 SQL 执行的超时时间,即控制 TiDB 与 Java 应用的连接最长闲多久和最 244 长忙多久。在 TiDB
0 码力 |
4805 页 |
101.28 MB
| 1 年前 3
-
持 IndexJoin、Plan Cache 等特性,性能表现更好。在未来版本中,静态裁剪模式将被废弃。 2.2.7 改进提升 • TiDB – 优化扫描大量数据时构造 BatchCop Task 的效率 #55915 #55413 @wshwsh12 – 优化事务的缓存,以降低事务中的写操作延时与 TiDB CPU 使用 #55287 @you06 – 优化系统变量 tidb_dml_type maxPerformance 包含的具体配置。 配置后查看监控,可以看到多余语句减少。 超时参数 TiDB 提供两个与 MySQL 兼容的超时控制参数,wait_timeout 和max_execution_time。这两个参数分别控制与 Java 应用连接的空闲超时时间和连接中 SQL 执行的超时时间,即控制 TiDB 与 Java 应用的连接最长闲多久和最 长忙多久。在 TiDB v5.4 4 及以上版本中,wait_timeout 参数默认值为 28800 秒,即空闲超时为 8 小时。在 v5.4 之 前,wait_timeout 参数的默认值为 0,即没有时间限制。max_execution_time 参数的默认值为 0,即不限制一 条 SQL 语句的执行时间。 但是wait_timeout 的默认值比较大,在事务已启动但未提交或回滚的情况下,你可能需要更细粒度的控制和 更短的超
0 码力 |
5095 页 |
104.54 MB
| 9 月前 3
-