您好,欢迎访问三七文档
@thinkpc @thinkpcPHPDora-RPCPHP–“”MVCControllerViewsModuleModelIndex.phpDAORewriteControllerViewsModuleModelDAOErrorCodeConfigErrorCodeConfigOOPYiiCIYarThinkphpMVCModelModuleModulefunctionRewirteURLDBModelTPexceptionreturnfalse–“”–“”AABBAPIWikihttpMVCViewControllerLib*ModuleDAOHTTP*MVCExceptionControllerJSONLBSRewriteControllerViewModuleModelDAOLibExceptionRewriteindex.phpControllerAutoloadInitSOASDKHTTPAPIControllerModuleModelDAOAutoloadInitIndex.phpDataCenterNginxNginx&PHPNginx&PHPMemcachedRedisGroupMysqlMasterMysqlSlaveMHAMysqlSlaveMysqlSlaveMysqlSlaveNginx&PHPNginx&PHPNginx&PHPDataCenterNginxApacheApacheMysqlMasterMemcacheMysqlSlaveMysqlSlaveRedisSOAHelper$context=array(“file”=__FILE__,”line”=__LINE__,…)$result=SOAHELPER::(“version/project/module/APIname”,$paramArray,$context);contextdocdebug{“code”:0,msg:OK,data:{userid:1223}}{“code:10002301,msg:Databaseconnectfail”,”data”:{}}{“code:100,msg:fromcache,data:{userid:1223}}–…SOA3030400HTTPHTTPCurlAPICurlStartFinishedProcess1Process5Process2Process3Process4Process6BlockWaitCurlIncludeCacheCachedebugxhprof1Rewriteindex.phpControllerAutoloadInitSOASDKHTTPAPIControllerModuleModelDAOAutoloadInitIndex.phpRewriteindex.phpControllerAutoloadInitModelSOASDKAPIControllerModuleModelDAOCacheNginxNginx&PHPNginx&PHPMemcachedExtensionRedisGroupMysqlMasterMysqlSlaveMHAMysqlSlaveMysqlSlaveMysqlSlaveDataCenterNginxNginx&PHPNginx&PHPMemcachedExtensionRedisGroupMysqlMasterMysqlSlaveMHAMysqlSlaveMysqlSlaveMysqlSlaveNginx&PHPNginx&PHPNginx&PHPDataCenterDebugHttpAPILIB*redisCacheBullSoft-BinLogCache–“”–Fastdfs“”Memcache2MemcacheAPI:/–“”100LoadRunnerSonarCubePSR2slowlogTCPCopy……–“”SOAModelIncludemergeSVNExceptionautoload1000SwooleTCPFPMtaskRequestSwooleClientSwooleTCPClient2SwooleApplicationServerSwooleServerAutoloadtaskWorkerExceptiononFinishedserialize$_POST$_GETTask2ktasktcp_no_delyRPCSOAApplicationServerRewriteindex.phpControllerAutoloadInitModelAPIControllerModuleModelDAOAutoloadInitSwooleClientSwooleserverRewriteindex.phpControllerAutoloadInitModelSOASDKAPIControllerModuleModelDAOCacheNginxNginx&PHPNginx&PHPMemcachedExtensionRedisGroupMysqlMasterMysqlSlaveMHAMysqlSlaveMysqlSlaveMysqlSlaveDataCenterNginxNginx&PHPNginx&PHPMemcachedExtensionRedisGroupMysqlMasterMysqlSlaveMHAMysqlSlaveMysqlSlaveMysqlSlaveDataCenterSwooleServerSwooleServerSOASwooleServerProcess2Process3Process4CombineResutlStartFinishedProcess1Process5BlockWait–“”ReloadServerTaskWorker401000Task,taskcodemsg8KRedisSetnx+ExpireRedisSetnx+expireTaskworkerPHP510“……”–KeepGoing“RPC”Dora-RPCRPCAPI0.002~0.004LibfigConfigConfigClientClientClientUUID&&Sentry+OpenFalconZabbixLogstash,ElasticSearch,KibanaPuppetDocker–“”SwooleSwooleSwoole–“PHP”@thinkpcPHP
本文标题:分布式服务的管理
链接地址:https://www.777doc.com/doc-6299162 .html