本地 IDC 机房 MySQL 数据库与云数据库 MySQL 之间可以通过数据迁移服务实时同步数据,本地IDC机房如遇到断电、网络故障等引起数据库服务中断,可迅速切换数据库服务至作为灾难备份的云数据库 MySQL 实例,实现数据库容灾;同时,云数据库 MySQL 可支持同城多可用区灾备/跨城灾备,保障高可用。
$ sls --debug DEBUG ─ Resolving the template's static variables. DEBUG ─ Collecting components from the template. DEBUG ─ Downloading any NPM components found in the template. DEBUG ─ Analyzing the template's components dependencies. DEBUG ─ Creating the template's components graph. DEBUG ─ Syncing template state. DEBUG ─ Executing the template's components graph. DEBUG ─ Compressing function hello_world file to /Users/dfounderliu/Desktop/ServerlessComponents/test/scf_test/.serverless/hello_world.zip. DEBUG ─ Compressed function hello_world file successful DEBUG ─ Uploading service package to cos[sls-cloudfunction-ap-guangzhou-code]. sls-cloudfunction-default-hello_world-1583816589.zip DEBUG ─ Uploaded package successful /Users/dfounderliu/Desktop/ServerlessComponents/test/scf_test/.serverless/hello_world.zip DEBUG ─ Creating function hello_world DEBUG ─ Updating code... DEBUG ─ Updating configure... DEBUG ─ Created function hello_world successful DEBUG ─ Setting tags for function hello_world DEBUG ─ Creating trigger for function hello_world DEBUG ─ Starting API-Gateway deployment with name hello_world.ap-guangzhou-hello_world.serverless_test in the ap-guangzhou region DEBUG ─ Service with ID service-p14470dc created. DEBUG ─ API with id api-pg3ihnoi created. DEBUG ─ Deploying service with id service-p14470dc. DEBUG ─ Deployment successful for the api named hello_world.ap-guangzhou-hello_world.serverless_test in the ap-guangzhou region. DEBUG ─ API with id api-op4jqvba created. DEBUG ─ Deploying service with id service-p14470dc. DEBUG ─ Deployment successful for the api named hello_world.ap-guangzhou-hello_world.serverless_test in the ap-guangzhou region. DEBUG ─ Deployed function hello_world successful DEBUG ─ Compressing function hello_world file to /Users/dfounderliu/Desktop/ServerlessComponents/test/scf_test/.serverless/hello_world.zip. DEBUG ─ Compressed function hello_world file successful DEBUG ─ Uploaded package successful /Users/dfounderliu/Desktop/ServerlessComponents/test/scf_test/.serverless/hello_world.zip DEBUG ─ Creating function hello_world DEBUG ─ Updating code... DEBUG ─ Updating configure... DEBUG ─ Created function hello_world successful DEBUG ─ Setting tags for function hello_world DEBUG ─ Creating trigger for function hello_world DEBUG ─ Starting API-Gateway deployment with name hello_world.ap-shanghai-hello_world.serverless_test in the ap-shanghai region DEBUG ─ Service with ID service-7daktopz created. DEBUG ─ API with id api-4v40ce4u created. DEBUG ─ Deploying service with id service-7daktopz. DEBUG ─ Deployment successful for the api named hello_world.ap-shanghai-hello_world.serverless_test in the ap-shanghai region. DEBUG ─ API with id api-emkl7ov4 created. DEBUG ─ Deploying service with id service-7daktopz. DEBUG ─ Deployment successful for the api named hello_world.ap-shanghai-hello_world.serverless_test in the ap-shanghai region. DEBUG ─ Starting API-Gateway deployment with name hello_world.ap-shanghai-hello_world.serverless_test in the ap-shanghai region DEBUG ─ Using last time deploy service id service-7daktopz DEBUG ─ Updating service with serviceId service-7daktopz. DEBUG ─ API with id api-2zag45hq created. DEBUG ─ Deploying service with id service-7daktopz. DEBUG ─ Deployment successful for the api named hello_world.ap-shanghai-hello_world.serverless_test in the ap-shanghai region. DEBUG ─ Deployed function hello_world successful hello_world: ap-guangzhou: Name: hello_world Runtime: Python3.6 Handler: index.main_handler MemorySize: 128 Timeout: 3 Region: ap-guangzhou Namespace: default Description: This is a template function APIGateway: - serverless_test - POST - http://service-p14470dc-1256773370.gz.apigw.tencentcs.com/release/users - serverless_test - POST - http://service-p14470dc-1256773370.gz.apigw.tencentcs.com/release/usersss ap-shanghai: Name: hello_world Runtime: Python3.6 Handler: index.main_handler MemorySize: 128 Timeout: 3 Region: ap-shanghai Namespace: default Description: This is a template function APIGateway: - serverless_test - POST - http://service-7daktopz-1256773370.sh.apigw.tencentcs.com/release/users - serverless_test - POST - http://service-7daktopz-1256773370.sh.apigw.tencentcs.com/release/usersss - serverless_test - POST - http://service-7daktopz-1256773370.sh.apigw.tencentcs.com/release/usersd 35s › hello_world › done
Serverless architecture grew out of cloud computing. It inherits all the advantages of cloud computing while being extremely flexible, cost effective, and maintenance free.