使用Skywalking对Nginx进行链路追踪

luarocks install luasocket luarocks install lua-resty-jit-uuid luarocks install luaunit luarocks install lua-cjson 2.1.0-1 确认Lua组件是否安装成功。luarocks list 下载并安装OpenResty Nginx。yum install pcre-devel openssl-...

Lua脚本规范与常见报错

云原生内存数据库Tair 实例支持Lua相关命令,通过Lua脚本可高效地处理CAS(compare-and-set)命令,进一步提升 Tair 的性能,同时可以轻松实现以前较难实现或者不能高效实现的模式。本文介绍在 Tair 中使用Lua脚本的基本语法与使用规范。...

使用Skywalking对Nginx进行链路追踪

luarocks install luasocket luarocks install lua-resty-jit-uuid luarocks install luaunit luarocks install lua-cjson 2.1.0-1 确认Lua组件是否安装成功。luarocks list 下载并安装OpenResty Nginx。yum install pcre-devel openssl-...

Lua脚本规范与常见报错

云数据库Redis实例支持Lua相关命令,通过Lua脚本可高效地处理CAS(compare-and-set)命令,进一步提升Redis的性能,同时可以轻松实现以前较难实现或者不能高效实现的模式。本文介绍通过Redis使用Lua脚本的基本语法与使用规范。注意事项 ...

iOS热修复lua脚本说明

可以查找waxPatch教程,编写lua脚本,详情请参见 阿里云iOS热修复Lua语法说明.pdf。适用于 移动热修复

使用Lua插件

Lua是一种轻量级、高效的脚本语言,在网关开发中,Lua可以用于编写和执行各种网关程序,例如API网关、消息网关、反向代理等。通过Lua脚本,开发人员可以实现请求的路由、过滤、鉴权等功能,并进行定制化的处理。在一些代理中,比如Nginx和...

alicloud_brain_industrial_pid_loops

This data source provides the Brain Industrial Pid Loops of the current Alibaba Cloud user.->NOTE:Available in v1.117.0+.Example Usage Basic Usage data"alicloud_brain_industrial_pid_loops""example"{ pid_project_id="856c6b8...

分区表扫描算子

QUERY PLAN-Append(actual time=8.376.8.751 rows=0 loops=1)->Seq Scan on part_range_p0 part_range_1(actual time=0.035.0.036 rows=0 loops=1)->Seq Scan on part_range_p1 part_range_2(actual time=0.009.0.009 rows=0 loops=1)->Seq...

分区表扫描算子

QUERY PLAN-Append(actual time=8.376.8.751 rows=0 loops=1)->Seq Scan on part_range_p0 part_range_1(actual time=0.035.0.036 rows=0 loops=1)->Seq Scan on part_range_p1 part_range_2(actual time=0.009.0.009 rows=0 loops=1)->Seq...

执行计划调优

举例分析 Update(cost=0.00.1274.11 rows=1 width=1)(actual time=995096.707.1517097.191 rows=245136 loops=1)Executor Memory:1kB Segments:96 Max:1kB(segment 0)->Partition Selector for t2(cost=0.00.1274.04 rows=1 width=842)...

通过EnvoyFilter资源自定义请求头和响应头

以下示例将创建一个名为 custom-header-filter 的EnvoyFilter资源,并配置了Lua过滤器来添加请求和响应头。它会对所有带有 app:my-app 标签的工作负载生效。展开查看EnvoyFilter YAML apiVersion:networking.istio.io/v1alpha3 kind:...

移动热修复FAQ

iOS热修复是否会被Apple审核拒绝 iOS热修复WaxPatch日志分析及计数统计说明 iOS热修复lua脚本说明 iOS端patch包拉取后在本地的加载路径 Android热修复支持修复哪些内容 公共云热修复对同一个版本多次发布补丁问题 waxpatch是否有IDE或其他...

物化视图

count-0(1 row)通过 EXPLAIN ANALYZE,我们可以看到:Aggregate(cost=21763.99.21764.00 rows=1 width=0)(actual time=188.180.188.181 rows=1 loops=1)->Foreign Scan on words(cost=0.00.21761.41 rows=1032 width=0)(actual time=188....

通过读写分离提升数据吞吐性能

mysql-proxy-daemon-log-level=debug-log-file=var/log/mysql-proxy.log-plugins=proxy-b 填写master-IP:3306-r 填写slave-IP:3306-proxy-lua-script="/alidata/mysql-proxy-0.8.5/share/doc/mysql-proxy/rw-splitting.lua"-plugins=admin-...

分区裁剪

segments:3)(cost=0.00.431.00 rows=1 width=4)(actual time=1.047.1.196 rows=3 loops=1)->Aggregate(cost=0.00.431.00 rows=1 width=4)(actual time=0.012.0.012 rows=1 loops=1)->Seq Scan on t1(cost=0.00.431.00 rows=1 width=4)...

Tair配置参数列表

标准️️✔️ 集群✔️ 读写分离✔️ 标准️️✔️ 集群✔️ 读写分离✔️#no_loose_lua-strict-mode 是否开启Lua脚本严格模式。开启后标准架构实例可以类似集群架构,要求Lua脚本中的数据Key必须由 KEYS 数组来传递(不能在Lua脚本中动态...

Nginx Ingress、MSE Ingress网关对比

手动配置合适的副本数和资源限制 Istiod+Envoy 每个用户使用各自独享实例 性能 性能依赖手动调优 使用Lua脚本支持了部分配置的热更新,但Lua脚本的大量使用对性能影响非常大 启用硬件加速后HTTPS性能提升约80%,结合OS与内部调优性能相比自...

CVE-2023-27492漏洞公告

Istio下的 Lua过滤器存在拒绝服务的风险。攻击者可以对启用Lua过滤器的监听器发送较大的请求体,并触发istio-proxy进程崩溃。本文介绍CVE-2023-27492漏洞的影响范围、漏洞影响和防范措施。关于CVE-2023-27492漏洞的详细描述,请参见 CVE-...

利用JIT加速计算

segments:3)(cost=453326.83.453326.88 rows=3 width=32)(actual time=13064.601.13444.006 rows=3 loops=1)->Partial Aggregate(cost=453326.83.453326.84 rows=1 width=32)(actual time=13443.451.13443.452 rows=1 loops=1)->Seq Scan ...

Sysbench使用指南

使用简介 常用测试模型 Sysbench通过脚本定义了若干常用的压测模型,以下简单介绍几个常用模型:压测模型 描述 bulk_insert.lua 批量插入数据 insert.lua 单值插入数据 delete.lua 删除数据 oltp.lua 混合读写测试,读写比例14:4 select....

关联子查询上拉

QUERY PLAN-Seq Scan on t1(actual time=67.631.1641827.119 rows=100000 loops=1)Filter:(SubPlan 1)SubPlan 1->Result(actual time=0.005.13.124 rows=50000 loops=100000)One-Time Filter:(t1.b=1)->Seq Scan on t2(actual time=0.005.7...

关联子查询上拉

QUERY PLAN-Seq Scan on t1(actual time=67.631.1641827.119 rows=100000 loops=1)Filter:(SubPlan 1)SubPlan 1->Result(actual time=0.005.13.124 rows=50000 loops=100000)One-Time Filter:(t1.b=1)->Seq Scan on t2(actual time=0.005.7...

列组统计信息

segments:3)(cost=137814.33.154481.00 rows=1000000 width=20)(actual time=3986.143.4014.601 rows=100001 loops=1)->HashAggregate(cost=137814.33.141147.67 rows=333333 width=20)(actual time=3977.037.4002.222 rows=33661 loops=1)...

测试步骤

sysbench./tests/include/oltp_legacy/oltp.lua \-db-driver=pgsql \-pgsql-db=sbtest \-pgsql-user=<username>\-pgsql-password=<password>\-pgsql-port=5432 \-pgsql-host=<host>\-oltp-tables-count=64 \-oltp-table-size=10000000 \-...

向量索引压测步骤

Type"]="application/json"return wrk.format("POST",nil,headers,query)end 开始压测-c 连接数(并发数)-t 发送请求的线程数-d 指定压测时间-s 指定脚本-latency 打印详细压测结果./wrk-c24-d100s-t8-s scripts/search.lua http://ha-...

EXPLAIN输出

QUERY PLAN-Sort(cost=717.34.717.59 rows=101 width=488)(actual time=7.761.7.774 rows=100 loops=1)Sort Key:t1.fivethous Sort Method:quicksort Memory:77kB->Hash Join(cost=230.47.713.98 rows=101 width=488)(actual time=0.711.7....

常见报错

too many pending request,now count xxx,beyond threshold xxx ERR redis temporary failure ERR redis temporary failure(ErrorCode 7002)Lua脚本与事务(Transaction)NOSCRIPT No matching script.Please use EVAL.BUSY Redis is busy ...

常见报错

too many pending request,now count xxx,beyond threshold xxx ERR redis temporary failure ERR redis temporary failure(ErrorCode 7002)Lua脚本与事务(Transaction)NOSCRIPT No matching script.Please use EVAL.BUSY Redis is busy ...

通过Unity Plugin接入数据

上报Lua异常信息 Unity4SLS.ReportLuaError("lua message","lua stacktrace");上报其他类型的异常信息 Unity4SLS.ReportError("stacktrace");Unity4SLS.ReportError("custom type,根据实际业务填写","stacktrace");Unity4SLS.ReportError(...

应用路由选型

同时,通过扩展Lua插件或注解配置Snippet,Nginx能够支持网关定制化请求方向转发规则或响应方向转发规则。在EDAS中使用Nginx Ingress,您可以轻松提供EDAS应用对外访问能力。面对高QPS场景,通过为Nginx Ingress Controller配置多个...

使用Redis搭建电商秒杀系统

end return 0 先使用 SCRIPT LOAD 将lua脚本提前缓存在Redis,然后调用 EVALSHA 调用脚本,比直接调用 EVAL 节省网络带宽,步骤如下:缓存lua脚本至Redis。SCRIPT LOAD"lua code"返回结果为:"438dd755f3fe0d32771753eb57f075b18fed7716...

计划加速

QUERY PLAN-Finalize Aggregate(cost=48970442.90.48970442.91 rows=1 width=8)(actual time=6466.854.6859.935 rows=1 loops=1)->Gather(cost=48970442.68.48970442.89 rows=2 width=8)(actual time=397.780.6859.902 rows=3 loops=1)...

Tair集群无感扩缩容

社区版Redis集群版通常会涉及到数据节点弹性扩缩容、分片间的数据迁移等需求,但业界常见的扩缩容方案仍存在一些问题,例如按Key迁移速度慢、不支持多Key命令、Lua脚本无法迁移、大Key迁移出现卡顿甚至引发高可用切换、迁移失败回滚复杂等...

计划加速

QUERY PLAN-Finalize Aggregate(cost=48970442.90.48970442.91 rows=1 width=8)(actual time=6466.854.6859.935 rows=1 loops=1)->Gather(cost=48970442.68.48970442.89 rows=2 width=8)(actual time=397.780.6859.902 rows=3 loops=1)...

性能白皮书

large_table_write_only.lua)、热点数据更新场景(dm_hot_update_only.lua)、DDL同步场景(dm_ddl_only.lua)的Lua脚本文件。Lua脚本文件 dm_large_table_write_only.lua#!usr/bin/env sysbench-Copyright(C)2006-2017 Alexey Kopytov...

Tair集群无感扩缩容介绍

社区版Redis集群版通常会涉及到数据节点弹性扩缩容、分片间的数据迁移等需求,但业界常见的扩缩容方案仍存在一些问题,例如按Key迁移速度慢、不支持多Key命令、Lua脚本无法迁移、大Key迁移出现卡顿甚至引发高可用切换、迁移失败回滚复杂等...

RDS PostgreSQL慢SQL问题

QUERY PLAN-Gather(cost=1000.00.97331.31 rows=1 width=4)(actual time=0.217.302.316 rows=1 loops=1)Workers Planned:2 Workers Launched:2->Parallel Seq Scan on t1(cost=0.00.96331.21 rows=1 width=4)(actual time=191.208.289.240 ...

ECS实例如何使用Pktgen测试网络性能

tar-Jxvf dpdk-18.11.11.tar.xz tar-zxvf lua-5.4.3.tar.gz unzip pktgen-dpdk-pktgen-3.6.5.zip 在编译的过程中若有其他依赖缺失,请执行以下命令,安装以下对应的安装包。CentOS 7 yum-y install kernel-devel.x86_64 yum-y install ...

X-Engine性价比优势

Sysbench测试命令:#InnoDB prepare数据库 sysbench/usr/share/sysbench/oltp_update_index.lua\-mysql-host=[RDS实例连接串]\-mysql-user=sbtest\-mysql-password=sbtest\-mysql-db=sbtest\-threads=32\-tables=[32-736]\-table_size=...

在ASM中通过EnvoyFilter添加HTTP响应头

name:envoy.lua typed_config:"@type":"type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua" inlineCode:|-function envoy_on_response(response_handle)function hasFrameAncestors(rh)s=rh:headers():get("Content-Security-...
共有6条 < 1 2 3 4 ... 6 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
弹性公网IP 短信服务 人工智能平台 PAI 金融分布式架构 对象存储 物联网平台
新人特惠 爆款特惠 最新活动 免费试用