Overview

This document explains about definition of these values on OUI Chartron.

Definition of Error Types

  • Error to Origin (50x) Hits/Sec

    • The hits per seconds of response 504. As RFC2616, "504" means "Gateway Timeout". But CS use this value for logging "Error to Origin".
    • The situation to return response 504 : If PX-503 response header starts with "O ", then log as 504.

  • Internal CDN Error (50x) Hits/Sec
    • Definition : The hits per seconds of response 505. As RFC2616, "505" means "HTTP Version Not Supported". But CS use this value for logging "Internal CDN Error".
    • The situation to return response 505 : If PX-503 response header not starts with "O " , then log as 505.

  • External Error (50x) Hits/Sec
    • Definition : The hits per seconds of response 50x received from origin.
    • If origin returns 504 or 505, CS logs as 503. (i.e. External Error = all of 5xx except 504,505)
  • Internal timeout (202) 
    • Definition : The hits per seconds of response 202.
      The situation that a request has accepted, but internal timeout
      occurs. As RFC2616, "202" means "Accepted". CS use similary this
      meaning.

      • If a real 202 response come from origin, perhit log
        has other reponse headers like "Server" or "Date", etc. But 202 response
        without other headers, the situation is internal timeout.
      • While CS retries to other nodes, CS will disconnect client connection and log as 202. In this case, request client cannot receives any http response code nor headers.

Test environment

  • Edge node : n5 (10.40.196.201)
  • Shield node : n7 (10.40.196.203), n4(10.40.196.204)
  • Origin : 10.40.198.222 (CustomHttpd)
  • Attached file : very_small.mp4 (325117 bytes)
  • Reproduce conditions
    • User -> CS edge
    • CS edge -> master or shield
    • CS shield -> origin

Error Cases by connection state

  • (CS Last level shield - origin)

  • (CS node - CS node)

  • Client - CS edge node

http.log messages

Edit Document

Error type http.log message Description
Error To Origin "read error" When using gzip compression, error occured on reading data to gzip buffer.
Error To Origin "too many downloads" The count of active connection to origin is over limit. (site's max_origin_downloads)
Error To Origin "PAD is marked dead" When
site is not dead, total origin connection per site is over 100 and
origin timeout per site is over 40% of total origin request per site,
the site is marked dead. This check is working every 20 second. And
origin connection counters are also reset every 20 seconds.

When site is dead, total origin connection per site is over 0 and origin
timeout per site is under 20% of total origin request per site, this
condition has been met every 20 seconds 3 times in raw (during 60
seconds), the site is marked undead.

When the requested cache object does not exist and the site is dead, if
num of total upstream is over than 100, CS respond 503 with "Px-503: O
PAD is marked dead".

Error To Origin "preceding upstream connection has not yet finished" When waiting prceding upstream connection at using NTLM feature (v8.2.1~)
Error To Origin "Too many upstream connections, aborting download for $(URL)" Upstream connection is over limit.
Internal CDN Error "file too large (chunked-transfer-encoding on a chunking pad)" (~
v8.0.x) Redirect to origin when data size is larger than 200MB and
use_sub_file is false and use transfer-encoding is chunked.
Internal CDN Error "bad file (disk)" The data from disk is bad.
Internal CDN Error "subfile mismatch" When using sub_file (chunking) , subfile's total content length is mismatched from first chunk's.
Internal CDN Error "short read" When Disk Cache cannot read data in right length from Disk.
Internal CDN Error "Init Task Failed" Various reason for fail MyStack.initStack()
Internal CDN Error "Selecting Master" Exception occurs on selectMaster()
Internal CDN Error "null" UpstreamConnectionHandler.doConnect()
Conditional "unknown host" upstream download fail : UnknownHostException occurred
Conditional "socket timeout" upstream download fail : SocketTimeoutException occurred
Conditional "io exception" upstream download fail : IOException occurred
Conditional "unknown exception" upstream download fail : Exception occurred
Conditional "Host lookup failed for $(host)" upstream download fail : DNS lookup failed
Conditional "Stalled download" + "Killed by connection manager after XXX" Upstream timeout
Conditional "Connect Failed" Upstream connect fail
Conditional "Read buffer filled but cannot parse" Read buffer done, but still cannot parse response header.
Conditional "reading (connection was closed prematurely)" Receiving socket close packet from upstream.
Conditional "reading response: connection was closed prematurely" connection was closed by upstream.
Conditional "The client side connection was already closed!" connection was closed by client.
Conditional "Downstream connection closed while upstream transfer chunked channel setting." Downstream connection closed while upstream transfer chunked channel setting.
Conditional "Connection closed while writing request" upstream connection was closed while writing request to upstream
Conditional "Connection closed while writing request body" upstream connection was closed while writing request body to upstream
Conditional "Connection closed while writing request body(chunked) : XX bytes sent" Error occured on ending stream Transfer-Encoding : chunked
Conditional "Invalid selection key" Java nio selection key is invalid on handling upstream connections.
Conditional "gotMoreContentDataThreaded" Exception occured in UpstreamConnection thread
     
"Conditional"
: When upstream fails, CS retries another upstream server that is
called "failover" logic. Following failover logic, If the last selected
server is origin, Error type decides "Error To Origin", other "Internal
CDN Error"

Understanding on 'Error to Origin (50x)' , 'Internal CDN Error (50x)' and 'External Error (50x)' in Chartron的更多相关文章

  1. angularjs 运行时报错ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected. node_modules/rxjs/internal/t

    解决方法: 在package.json文件里面 修改 "rxjs": "^6.0.0" 为 "rxjs": "6.0.0" ...

  2. idea报错:error java compilation failed internal java compiler error

    idea下面报如下问题 error java compilation failed internal java compiler error 解决办法:Setting->Compiler-> ...

  3. idea Error:java: Compilation failed: internal java compiler error

    idea 遇到Error:java: Compilation failed: internal java compiler error 是提示说你当前使用的编译器jdk版本不对. 按住Ctrl+Alt ...

  4. com.sun.xml.internal.ws.server.ServerRtException: Server Runtime Error: java.net.BindException: Cannot assign requested address: bind

    在发布 web service 时报错: Endpoint.publish(publishAddress, hl7MessageReveiver); com.sun.xml.internal.ws.s ...

  5. Error:java:Compilation failed: internal java compiler error

    在IDEA中编译时出现这个错误:Error:java:Compilation failed: internal java compiler error! Information:Using javac ...

  6. Git版本控制工具使用:Error pulling origin: error: Your local changes to the following files would be overwritten by merge

    摘自: CSDN 逆觞 git在pull时,出现这种错误的时候,可能很多人进进行stash,相关stash的请看:Error pulling origin: error: Your local cha ...

  7. Error pulling origin: error: The following untracked working tree files would be overwritten by...

    git在pull时,出现这样的错误的时候,可能非常多人进进行stash.相关stash的请看:Error pulling origin: error: Your local changes to th ...

  8. Error pulling origin: error: Your local changes to the following files would be overwritten by merge

    Git在pull时,出现这种错误的时候,可能很多人进进行stash,相关stash的请看:Error pulling origin: error: Your local changes to the ...

  9. Android studio Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to

    http://blog.csdn.net/FlyRabbit_1/article/details/74536317 Error:org.gradle.api.internal.tasks.Defaul ...

随机推荐

  1. Django---ORM简介丶单表操作丶增删改查

    一丶ORM简介 MVC或者MVC框架中包括一个重要的部分,就是ORM,它实现了数据模型与数据库的解耦,即数据模型的设计不需要依赖于特定的数据库,通过简单的配置就可以轻松更换数据库,这极大的减轻了开发人 ...

  2. JAVA中的多态概念

    多态性是指同一操作作用于某一类对象,可以有不同的解释,产生不同的执行结果. 多态存在的三个必要条件 需要存在继承和实现关系 同样的方法调用而执行不同操作,运行不同代码. 在运行时父类或者接口的引用变量 ...

  3. php编译安装过程中遇到问题

    编译安装PHP时遇到的问题 问题1: configure: error: xml2-config not found. Please check your libxml2 installation. ...

  4. 红象云腾CRH 一键部署大数据平台

    平台: arm 类型: ARM 模板 软件包: azkaban hadoop 2.6 hbase hive kafka spark zeppelin azkaban basic software bi ...

  5. hdu-2066 一个人的旅行---模板题

    题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=2066 题目大意: 求到目标点集合中的最短距离 解题思路: dijkstra算法求出每个点到该点的最短 ...

  6. 【转】IOS基础:深入理解Objective-c中@class的含义

    objective-c中,当一个类使用到另一个类时,并且在类的头文件中需要创建被引用的指针时, 如下面代码: A.h文件 #import "B.h" @interface A :  ...

  7. 在PHP中读取二进制文件

    很多时候,数据并不是用文本的方式保存的,这就需要将二进制数据读取出来,还原成我们需要的格式.PHP在二进制处理方面也提供了强大的支持. 任务 下面以读取并分析一个PNG图像的文件头为例,讲解如何使用P ...

  8. fmt - 简易的文本格式优化工具 simple optimal text formatter

    总览 (SYNOPSIS) ../src/fmt [-DIGITS] [OPTION]... [FILE]... 描述 (DESCRIPTION) 重新 格式化 文件 FILE(s) 中的 每一个 段 ...

  9. 树莓派(raspberry pi)更改键盘布局

    http://blog.csdn.net/c80486/article/details/8460271 树莓派(raspberry pi)用了几次后,发现键盘老是按错,一些字符打不出来或打错 这个问题 ...

  10. 解决Win10桌面右键卡顿一直转圈圈的

    把系统重置之后,发现在桌面点击右键时一直转圈,但是在文件夹等非桌面位置都正常.可能是我之前修改注册表添加右键选项造成的,也可能不是,因为将修改的地方删除还是没有解决问题,555. 上网搜素一波,发现大 ...