分布式服务的管理

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

@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

1 / 63
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功