Documentation
¶
Overview ¶
Package phpfpm implements the FastCGI protocol. Currently only the responder role is supported. The protocol is defined at http://www.fastcgi.com/drupal/node/6?q=node/22
Index ¶
Constants ¶
View Source
const ( PfPool = "pool" PfProcessManager = "process manager" PfStartSince = "start since" PfAcceptedConn = "accepted conn" PfListenQueue = "listen queue" PfMaxListenQueue = "max listen queue" PfListenQueueLen = "listen queue len" PfIdleProcesses = "idle processes" PfActiveProcesses = "active processes" PfTotalProcesses = "total processes" PfMaxActiveProcesses = "max active processes" PfMaxChildrenReached = "max children reached" PfSlowRequests = "slow requests" )
Variables ¶
View Source
var ErrConnClosed = errors.New("fcgi: connection to web server closed")
ErrConnClosed is returned by Read when a handler attempts to read the body of a request after the connection to the web server has been closed.
View Source
var ErrRequestAborted = errors.New("fcgi: request aborted by web server")
ErrRequestAborted is returned by Read when a handler attempts to read the body of a request that has been aborted by the web server.
Functions ¶
Types ¶
type JSONMetrics ¶ added in v1.29.1
type JSONMetrics struct {
Pool string `json:"pool"`
ProcessManager string `json:"process manager"`
StartTime int `json:"start time"`
StartSince int `json:"start since"`
AcceptedConn int `json:"accepted conn"`
ListenQueue int `json:"listen queue"`
MaxListenQueue int `json:"max listen queue"`
ListenQueueLen int `json:"listen queue len"`
IdleProcesses int `json:"idle processes"`
ActiveProcesses int `json:"active processes"`
TotalProcesses int `json:"total processes"`
MaxActiveProcesses int `json:"max active processes"`
MaxChildrenReached int `json:"max children reached"`
SlowRequests int `json:"slow requests"`
Processes []struct {
Pid int `json:"pid"`
State string `json:"state"`
StartTime int `json:"start time"`
StartSince int `json:"start since"`
Requests int `json:"requests"`
RequestDuration int `json:"request duration"`
RequestMethod string `json:"request method"`
RequestURI string `json:"request uri"`
ContentLength int `json:"content length"`
User string `json:"user"`
Script string `json:"script"`
LastRequestCPU float64 `json:"last request cpu"`
LastRequestMemory float64 `json:"last request memory"`
} `json:"processes"`
}
Click to show internal directories.
Click to hide internal directories.