IARNO
IARNO
主页分类搜索Github
努力升级中的凡人
  • 限流算法实践

    April 21, 2021

    一、限流简介 什么是限流 在不同场景下限流的定义也各不相同,可以是每秒请求数、每秒事务处理数、网络流量。 通常我们所说的限流指的是限制到达系统并发…

    Lua限流

  • ngx_lua模块中使用lua_shared_dict共享内存变量

    April 19, 2021

    lua_shared_dict 在ngx_lua模块中使用共享内存字典项相关API的前提条件是已经使用lua_shared_dict命令定义了一个字典项对象,该命令的具体…

    Lualua_shared_dict

  • openresty 跑定时任务配置、ngx.timer.every接口使用

    April 19, 2021

    openresty的定时任务是要跟worker绑定的。如果不绑定特定的worker,那么所有启动的woker都会去执行定时任务。 一般情况下默认绑定worker_id=0的,这样在nginx整个进程里面,就只执行一个timer。 …

    Luatimer

  • too many open files 问题定位

    March 17, 2021

    错误 socket:too many open files 问题原因 系统资源限制小(ulimit -a 查看open files限制) 数据库打开文件限制小(登录数据库 show variables like '%o…

    其他linux

  • Gin pprof性能分析

    December 28, 2020

    pprof // 导入包 import ( "github.com/DeanThompson/ginpprof" ) // gin框架直接集成 router := gin.New() ginpprof.Wrapper(router) …

    Go内存泄漏

  • Go grpc案例

    December 28, 2020

    相关定义 在.proto文件中定义一个服务。 使用protocol buffer编译器生成客户端和服务端代码。 使用gRPC的Go API为你的服务写…

    Gogrpc

  • Golang 协程异步请求

    December 28, 2020

    协程(coroutine)是Go语言中的轻量级线程实现,由Go运行时(runtime)管理。 …

    Go异步请求

  • centos7安装Postgresql

    November 17, 2020

    1、进入官网下载所需版本 https://www.postgresql.org/download/linux/redhat/ …

    其他网关

  • centos7 安装kong网关

    November 14, 2020

    下载安装包: https://bintray.com/kong/kong-community-edition-rpm/download_file?file_path=centos/7/kong-community-edition-1.0.2.el7.noarch.rpm …

    其他网关

  • 通过图片url获取图片尺寸大小

    October 28, 2020

    通过图片url获取图片尺寸大小(size) 问题 当使用image.Decode时报image: unknown format· 这是因为忘记引入包import _…

    Go图片尺寸

  • 1
  • 2
  • 3
  • 4
  • 5

©2023 IARNO

京ICP备20010474号