Xiaopei's DokuWiki

These are the good times in your life,
so put on a smile and it'll be alright

User Tools

Site Tools


it:aliyun

阿里云

DTS

跨账号、TiDB 迁移

too many open files

看进程的 limit 可以 # cat /proc/$PID/limits

Limit                     Soft Limit           Hard Limit           Units
Max cpu time              unlimited            unlimited            seconds
Max file size             unlimited            unlimited            bytes
Max data size             unlimited            unlimited            bytes
Max stack size            10485760             unlimited            bytes
Max core file size        0                    unlimited            bytes
Max resident set          unlimited            unlimited            bytes
Max processes             63694                63694                processes
Max open files            65535                65535                files
Max locked memory         65536                65536                bytes
Max address space         unlimited            unlimited            bytes
Max file locks            unlimited            unlimited            locks
Max pending signals       63694                63694                signals
Max msgqueue size         819200               819200               bytes
Max nice priority         0                    0
Max realtime priority     0                    0
Max realtime timeout      unlimited            unlimited            us

如果和用户的 ulimit -n 不同,可以重启进程试试

RAM & STS

OSS

使用 STS 生成临时的 appkey,更适合 app 使用:进阶使用 STS

JS 集成:对象存储 OSS_SDK手册_JavaScript-SDK_快速开始-浏览器-阿里云产品文档

命令行测试方法

osscmd 工具下载:

对象存储 OSS_SDK手册_历史版本SDK下载_Python SDK开发包-阿里云产品文档

使用方法:

// 上传
$ ./osscmd put logo.png oss://yzh-test/logo.png --host=oss-cn-qdjbp-a-internal.aliyuncs.com -i LTAIdARoqg48v3 -k arfgBsksnhMzSxLHxamBAKod4tsa
// 下载
$ ./osscmd get oss://yzh-test/logo.png logo2.png --host=oss-cn-qdjbp-a-internal.aliyuncs.com -i LTAIdARoqg48v3 -k arfgBsksnhMzSxLHxamBAKod4tsa
it/aliyun.txt · Last modified: 2018/04/02 21:26 by admin