国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

適用于go-fastdfs分布式文件系統(tǒng)auth_token驗證

v1.0.4 版本
2023-08-09 版本更新時間
16 安裝
0 star

Webman plugin ledc/go-fastdfs

安裝

composer require ledc/go-fastdfs

簡介

基于webman編寫的用戶自定義驗證接口,適用于go-fastdfs分布式文件系統(tǒng)auth_token驗證。

配置

  • 項目目錄下:/config/plugin/ledc/go-fastdfs/app.php

  • Nginx配置

location /upload/auth {
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header Host $host;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_http_version 1.1;
  proxy_set_header Connection "";
  proxy_pass http://127.0.0.1:8787;
}

go-fastdfs分布式文件系統(tǒng)

基于http協(xié)議的分布式文件系統(tǒng),它基于大道至簡的設(shè)計理念,一切從簡設(shè)計,使得它的運維及擴展變得更加簡單,它具有高性能、高可靠、無中心、免維護等優(yōu)點。

接口測試

環(huán)境:騰訊云2核心4GB內(nèi)存
壓測指令:ab -n10000 -c200 http://127.0.0.1:8686/upload/auth?auth_token=123456

This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests

Server Software:        workerman
Server Hostname:        127.0.0.1
Server Port:            8686

Document Path:          /upload/auth?auth_token=123456
Document Length:        4 bytes

Concurrency Level:      200
Time taken for tests:   2.938 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      1240000 bytes
HTML transferred:       40000 bytes
Requests per second:    3404.07 [#/sec] (mean)
Time per request:       58.753 [ms] (mean)
Time per request:       0.294 [ms] (mean, across all concurrent requests)
Transfer rate:          412.21 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.9      1       7
Processing:     3   57  14.7     54     191
Waiting:        3   56  14.7     53     191
Total:          6   58  14.5     55     192

Percentage of the requests served within a certain time (ms)
  50%     55
  66%     58
  75%     60
  80%     62
  90%     70
  95%     91
  98%    104
  99%    112
 100%    192 (longest request)
贊助商