Apache ShardingSphere 中文文档 5.4.1ShardingSphere‐Proxy 对系统库/表(如 information_schema、pg_catalog)支持有限,通过部分图形化 数据库客户端连接 Proxy 时,可能客户端或 Proxy 会有错误提示。可以使用命令行客户端(mysql、psql、 gsql 等)连接 Proxy 验证功能。 7.2.3 前提条件 使用 Docker 启动 ShardingSphere‐Proxy 无须额外依赖。使用二进制分发包启动 Proxy 启动完成后,通过 DistSQL 移除异常数据源。 5. 使用 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接 ShardingSphere‐Proxy: mysql -h${proxy_host} -P${proxy_port} driver.jdbc.unsupported 包。 9.1.6 可观察性 Agent 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean0 码力 | 530 页 | 4.49 MB | 1 年前3
Apache ShardingSphere 中文文档 5.3.2ShardingSphere‐Proxy 对系统库/表(如 information_schema、pg_catalog)支持有限,通过部分图形化 数据库客户端连接 Proxy 时,可能客户端或 Proxy 会有错误提示。可以使用命令行客户端(mysql、psql、 gsql 等)连接 Proxy 验证功能。 7.2.3 前提条件 使用 Docker 启动 ShardingSphere‐Proxy 无须额外依赖。使用二进制分发包启动 Proxy 启动完成后,通过 DistSQL 移除异常数据源。 5. 使用 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接 ShardingSphere‐Proxy: mysql -h${proxy_host} -P${proxy_port} driver.jdbc.unsupported 包。 9.1.6 可观察性 Agent 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean0 码力 | 508 页 | 4.44 MB | 1 年前3
Apache ShardingSphere v5.5.0 中文文档ShardingSphere‐Proxy 对系统库/表(如 information_schema、pg_catalog)支持有限,通过部分图形化 数据库客户端连接 Proxy 时,可能客户端或 Proxy 会有错误提示。可以使用命令行客户端(mysql、psql、 gsql 等)连接 Proxy 验证功能。 7.2.3 前提条件 使用 Docker 启动 ShardingSphere‐Proxy 无须额外依赖。使用二进制分发包启动 Proxy 启动完成后,通过 DistSQL 移除异常数据源。 5. 使用 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接 ShardingSphere‐Proxy: mysql -h${proxy_host} -P${proxy_port} Apache ShardingSphere document 9.1.6 可观察性 Agent 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean0 码力 | 557 页 | 4.61 MB | 1 年前3
Apache ShardingSphere ElasticJob 中文文档 2023 年 11 月 01 日. . . 71 开启监听端口 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 执行导出命令 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 6.3.3 作业运行状态监控 . . . ElasticJob 过程中可能会碰到一些分布式问题,导致作业运行不稳定。 由于无法在生产环境调试,通过 dump 命令可以把作业内部相关信息导出,方便开发者调试分析; 导出命令的使用请参见运维指南。 以下示例用于展示如何通过 SnapshotService 开启用于导出命令的监听端口。 public class JobMain { public static void main(final 使用 ElasticJob 过程中可能会碰到一些分布式问题,导致作业运行不稳定。 由于无法在生产环境调试,通过 dump 命令可以把作业内部相关信息导出,方便开发者调试分析; 导出命令的使用请参见运维指南。 以下示例用于展示如何通过 Spring 命名空间开启用于导出命令的监听端口。0 码力 | 98 页 | 1.97 MB | 1 年前 3
Apache ShardingSphere 中文文档 5.0.0-alpha${proxy_port} ${proxy_conf_directory} 2.2.4 4. 使用 ShardingSphere-Proxy 执行 MySQL 或 PostgreSQL 的客户端命令直接操作 ShardingSphere‐Proxy 即可。以 MySQL 举例: mysql -u${proxy_username} -p${proxy_password} -h${proxy_host} good_prority IN (1, 10); 全库路由 全库路由用于处理对数据库的操作,包括用于库设置的 SET 类型的数据库管理命令,以及 TCL 这样的事 务控制语句。在这种情况下,会根据逻辑库的名字遍历所有符合名字匹配的真实库,并在真实库中执行 该命令,例如: SET autocommit=0; 在 t_order 中执行,t_order 有 2 个真实库。则实际会在 t_order_0 操作,授权语句针对的是数据库的实例。无论一个实例中包含多少个 Schema,每 个数据库的实例只执行一次。例如: CREATE USER customer@127.0.0.1 identified BY '123'; 这个命令将在所有的真实数据库实例中执行,以确保 customer 用户可以访问每一个实例。 3.1. 数据分片 29 Apache ShardingSphere document, v5.0.0-beta0 码力 | 301 页 | 3.44 MB | 1 年前3
Apache ShardingSphere 中文文档 5.2.0ShardingSphere‐Proxy 对系统库/表(如 information_schema、pg_catalog)支持有限,通过部分图形化 数据库客户端连接 Proxy 时,可能客户端或 Proxy 会有错误提示。可以使用命令行客户端(mysql、psql、 gsql 等)连接 Proxy 验证功能。 2.2.3 前提条件 使用 Docker 启动 ShardingSphere‐Proxy 无须额外依赖。使用二进制分发包启动 ${proxy_port} ${proxy_conf_directory} 5. 使用 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接 ShardingSphere‐Proxy: mysql -h${proxy_host} -P${proxy_port} Proxy 内的 conf 目录。启动脚本可以 指定监听端口、配置文件所在目录,命令如下: bin/start.sh [port] [/path/to/conf] 9. 使用客户端连接 ShardingSphere‐Proxy 执行 MySQL / PostgreSQL / openGauss 的客户端命令直接操作 ShardingSphere‐Proxy 即可。 使用 MySQL 客户端连接0 码力 | 449 页 | 5.85 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.2sh ${proxy_port} ${proxy_conf_directory} 2.2.5 使用 ShardingSphere-Proxy 执行 MySQL 或 PostgreSQL 的客户端命令直接操作 ShardingSphere‐Proxy 即可。以 MySQL 举例: mysql -u${proxy_username} -p${proxy_password} -h${proxy_host} 系统统计指标,通过探针收集,并且写入到时序数据库,供第三方应用展示。 4.10.5 使用规范 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean helm dependency build cd .. helm install shardingsphere-proxy apache-shardingsphere-proxy 执行上述命令以执行默认配置进行安装。其他的配置详见下方的配置列表。执行 helm list 获取所有 安装的 release。 卸载 helm uninstall shardingsphere-proxy0 码力 | 446 页 | 4.67 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.1sh ${proxy_port} ${proxy_conf_directory} 2.2.4 使用 ShardingSphere-Proxy 执行 MySQL 或 PostgreSQL 的客户端命令直接操作 ShardingSphere‐Proxy 即可。以 MySQL 举例: mysql -u${proxy_username} -p${proxy_password} -h${proxy_host} 系统统计指标,通过探针收集,并且写入到时序数据库,供第三方应用展示。 4.10.5 使用规范 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean shardingsphere/shardingsphere-proxy 5.2. ShardingSphere-Proxy 143 Apache ShardingSphere document, v5.1.1 执行上述命令后会以默认的配置进行安装。其他的配置详见下方的配置列表。 如果需要获取所有安装的 release ,可以执行 helm list 卸载 如果要卸载上述安装的 release ,请执行 helm0 码力 | 409 页 | 4.47 MB | 1 年前3
Apache ShardingSphere 中文文档 5.0.0${proxy_port} ${proxy_conf_directory} 2.2.4 4. 使用 ShardingSphere-Proxy 执行 MySQL 或 PostgreSQL 的客户端命令直接操作 ShardingSphere‐Proxy 即可。以 MySQL 举例: mysql -u${proxy_username} -p${proxy_password} -h${proxy_host} 推送到生产环境并立即生效。 操作指南 熔断实例 可在 IP 地址 @PORT 节点写入 DISABLED(忽略大小写)表示禁用该实例,删除 DISABLED 表示启用。 Zookeeper 命令如下: [zk: localhost:2181(CONNECTED) 0] set /${your_zk_namespace}/status/compute_nodes/ circuit_bre DISABLED 禁用从库 在读写分离场景下,可在数据源名称子节点中写入 DISABLED(忽略大小写)表示禁用从库数据源,删 除 DISABLED 或节点表示启用。 Zookeeper 命令如下: [zk: localhost:2181(CONNECTED) 0] set /${your_zk_namespace}/status/storage_nodes/ disable/${your_schema_name0 码力 | 385 页 | 4.26 MB | 1 年前3
Apache ShardingSphere 中文文档 5.1.0sh ${proxy_port} ${proxy_conf_directory} 2.2.4 使用 ShardingSphere-Proxy 执行 MySQL 或 PostgreSQL 的客户端命令直接操作 ShardingSphere‐Proxy 即可。以 MySQL 举例: mysql -u${proxy_username} -p${proxy_password} -h${proxy_host} 系统统计指标,通过探针收集,并且写入到时序数据库,供第三方应用展示。 4.10.5 使用规范 源码编译 从 Github 下载 Apache ShardingSphere 源码,对源码进行编译,操作命令如下。 git clone --depth 1 https://github.com/apache/shardingsphere.git cd shardingsphere mvn clean rty [,poolProperty]) ...]) poolProperty: "key"= ("value" | value) • 添加资源前请确认已经创建分布式数据库,并执行 use 命令成功选择一个数据库 • 确认增加的资源是可以正常连接的,否则将不能添加成功 • 重复的 dataSourceName 不允许被添加 • 在同一 dataSource 的定义中,simpleSource0 码力 | 406 页 | 4.40 MB | 1 年前3
共 11 条
- 1
- 2













