PHP應用程序的服務器集羣發送請求與代碼錯誤賞析(zend server)

Zend Server提供企業級的Web應用服務器,特別是對PHP應用程序的支持很完美。Zend Server服務器的集羣管理方法有不少,下面介紹下服務器集羣鏈接的請求參數和錯誤代碼。node

請求參數:服務器

Parameteride

 Typeui

Requiredorm

Descriptionserver

serverNameip

Stringci

Yesget

Server nameit

dbHost

String

Yes

Database host address to join the cluster

dbUsername

String

Yes

Database credentials (username)

dbPassword

String

Yes

Database credentials (password)

nodeIp

String

Yes

Server IP

dbName

String

Yes

Database name

failIfConnected

Boolean

No

Cause the action to completely fail if the server is already connected. Otherwise, a normal 200 status is returned without performing any action. Default: false

錯誤代碼:

HTTP Code

 Error Code

Description

400

alreadyConnected

The server is already a member of a cluster (not necessarily the current cluster)

400

wrongPassword

Provided GUI password is incorrect

405

notImplementedByEdition

This method is only available on Professional or Enterprise editions

500

invalidServerResponse

Invalid or unexpected response from new server

500

serverNotLicensed

Zend Server is not licensed

500

noActiveServers

The server cannot be added because all servers in the cluster are disabled or unreachable

500

cantConnectToServer

Zend Server is unable to connect to the specified Server URL

503

temporarilyLocked

The server cannot be added because a cluster member is in graceful startup / shutdown mode

相關文章
相關標籤/搜索