Q1: Eight hours difference in cloud hosting?

A: The container system Time is Coordinated with Universal Time (UTC) by default, 8 hours different from the local Time zone CST:

When building a basic image or creating a custom image based on a basic image, you can create a time zone file in the Dockerfile to resolve the time zone inconsistency in a single container. In addition, you will not be affected by the time zone problem when using the image.

1. Open the Dockerfile file.

2. Write the following information to configure the time zone file

FROM centos as centos  COPY --from=centos  /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN echo "Asia/Shanghai" > /etc/timezone
Copy the code

3. Rebuild the container image and deploy it again using the new image. Or simply upload the code package with the new Dockerfile and redeploy.

Q2: What is the role of cloud hosting?

A: Deploy applets/public number back end instead of server.

Q3: Can cloud hosting host back-end services?

A: Cloud hosting is A cloud native fully hosted container back-end cloud service for developers, which supports hosting containerized applications of any language and framework.

Q4: Is there a relationship between Tencent Cloud and wechat cloud hosting? What are the differences between cloud hosting and wechat cloud hosting for cloud development?

A: wechat cloud hosting is A comprehensive solution that integrates Tencent cloud underlying resources and wechat ecological links. The cloud hosting in the original cloud development is independent and upgraded to wechat cloud hosting, which complements database, CI/CD, grayscale publishing and other complete back-end functions and enterprise-level DevOPS capabilities.

Q5: Cannot log in to the cloud Hosting console?

No. A: small program test/trial # does not support, the third party to quickly create small programs need to be in A small program mp backstage after binding mobile phone number to login, quickly create small procedures can go to “small program assistant” first small program set up login email and password, set up after the completion of the can login to WeChat public platform used, specific reference guide: Kf.qq.com/touch/sappf…

Q6: The deployment fails and the port is abnormal?

A: The port is abnormal in two ways: 1. The program starts normally, but the port is incorrect. 2. The port is correctly filled in, but the program starts abnormally, causing the connection failure.

Q7: The capacity expansion condition is not configured. Why is the service expansion displayed all the time?

A: By default, the capacity expansion or reduction condition is configured for the CPU usage >=60%. During capacity expansion, the capacity expansion or reduction condition is triggered. If you need to adjust the capacity expansion condition, go to the Console – Service Management – Service Settings – Basic Settings page.

Q8: Does cloud hosting support multiple port listening?

A: Currently, only one listening port is supported. For better experience and performance, it is recommended that a service contain only one process that focuses on one thing. If there are multiple processes, split them into multiple services, so that each service needs only one port, which allows the service to be more focused and to scale independently based on usage.

Q9: How soon will instances of cloud hosting be released?

A: The instance capacity will be reduced to 0 only when the minimum value of the instance is set to 0.

Q10: How do I keep the service running permanently?

A: Set the minimum number of instance copies to 1. Path: Service Management – Service List – Service Settings – Basic Information.

Q11: Can cloud hosting access Tencent Cloud message queue RabbitMQ version?

A: Yes, ensure that they are in the same VPC.

Q12: Is cloudbase_access_token required for local debugging of open interface services?

A: For local debugging, please use VSCode debugging plug-in, which will automatically generate Cloudbase_access_token.

Q13: How to use microsignaling card for local debugging of applets?

A: small program can be used reference documentation VSCode plugin for local debugging, you can use the micro signaling and avoid authentication ability: open interface service | WeChat open document.

Q14: Cloud hosting in addition to MySQL can support other databases?

A: Use other databases can be bought on Tencent cloud, with cloud hosting, buy in the same VPC and cloud hosting. (Cloud hosted VPC Path: Console – Settings – Environment Settings – Network)

Q15: Cloud hosting database password where to view?

A: wechat cloud hosting will not store the database password, please keep it properly, if you forget to reset the password. (If the database is created through one-click deployment, the account secret can also be checked by wechat service notification)

Q16: How does cloud hosting use the database developed by cloud?

A: Cloud hosting can not directly use the cloud development database, it is recommended to use the MySQL database of cloud hosting; If you must use the cloud development database, only Node. js can be used with the official Node-SDK call; There is no SDK support for other types of databases in other languages. Other cloud databases in Tencent Cloud can only be used in the same VPC as the cloud hosting environment. (Cloud hosted VPC Path: Console – Settings – Environment Settings – Network)

Q17: Why do cloud hosted databases automatically pause?

A: The database has no automatic read/write pause within 10 minutes by default. If you want to cancel the pause, you can go to the database to disable the automatic pause.

Q18: Will the table structure of the cloud managed database be initialized?

A: The system does nothing to the database.

Q19: How long will a cloud hosted database be logged out when it is not used?

A: Will not take the initiative to cancel, unless the user takes the initiative to cancel, or account arrears 7 days after the service.

Q20: Does callContainer have a limit on the size of callback packets?

A: Return the packet size limit of 1000K.

Q21: Failed to invoke the cloud hosting service and a message is displayed indicating that the service name does not exist?

A: The service name does not exist. The following conditions may occur:

  • If the service name is incorrect, the service does not exist in the environment.
  • The environment ID is incorrect. The service does not exist in the wrong environment.
  • A service is invoked in an applet that is not bound to the corresponding cloud hosting environment. The environment binds applets A but is called in applets B;
  • The service has been deleted.

Q22: The event of public account is pushed to cloud hosting, why there is no unionID?

A: The headers required to be bound to the open account will carry the X-wX-unionID.

Q23: Configuring cloud hosting message push – How to fill in the path value?

A: Write the path of the interface in the service to which the interface is received. For example, enter/in the root path.

Q24: Using cloud hosting, how to bind the public account service configuration? Can you access the service directly by accessing an extranet url hosted by the cloud?

A: There is no need to fill in the server configuration, and you can directly use wechat’s open interface service. In addition, it is recommended to use CallContainer instead of direct public network access service in the public account.

Q25: Is cloud hosting a fixed export IP?

A: No, the IP addresses of the exit and entrance are not fixed, and the fixed IP addresses are open as payment capacity.

Q26: Cloud hosting if DDoS will deduct money?

A: There are two situations:

1. Call CallContainer and disable the public network access mode to completely prevent DDoS attacks.

2. If the user opens the public network and causes DDoS, there will still be charges.

Q27: How to purchase resources when the free quota expires or is used up?

A: After the free quota expires or is used up, you will be charged according to the actual usage. If you want to purchase A resource package, you can go to “Cloud Hosting Console – Resource Monitoring – Resource Usage – Resource Package” to purchase A suitable resource package.

Q28: Can resource packs increase the duration?

A: Duration cannot be added, only amount can be added.

Q29: Accidentally opened the cloud hosting environment, did not create the service, will deduct the fee?

A: No. There is no cost to running without an instance.