A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.alibabacloud.com/help/en/functioncompute/fc-2-0/user-guide/principles below:

Principles - Function Compute - Alibaba Cloud Documentation Center

For a custom runtime, the code file in the ZIP format is an HTTP server program. This topic describes the basic principles of cold starts of a custom runtime and the requirements for the configurations of HTTP servers.

Principles

For a custom runtime, the code file in the ZIP format is an HTTP server program. You need to only configure the Startup Command and Startup Parameter parameters for the function to start the HTTP server. When Function Compute performs a cold start in a custom runtime, the Startup Command and Startup Parameter parameters are used to start your custom HTTP server. The HTTP server takes over all requests from Function Compute. The default port of an HTTP server is 9000. If you use another port, such as 8080, for the HTTP server, you can set the listening port in the function configurations to 8080.

For example, the name of the code package of a function is function.zip. The following examples show the files that are contained in the package and the Startup Command and Startup Parameter parameters based on the programming language that is used to develop the function.

Java 8 or Spring Boot
.
├── demo.jar


customRuntimeConfig:
 command:
 - java 
 args:
 - '-jar'
 - 'demo.jar'	
Python 3.7
.
├── server.py


customRuntimeConfig:
 command:
 - python
 args:
 - 'server.py'
Node.js 10
.
├── server.js


customRuntimeConfig:
 command:
 - node
 args:
 - 'server.js'
PHP 7.4
.
├── server.php


customRuntimeConfig:
 command:
 - php
 args:
 - 'server.php'
Note

customRuntimeConfig specifies the custom startup commands for the function. command specifies the startup commands for the container. args specifies the startup parameters. Function Compute concatenates the content in command and args to form a complete startup command. If the startup command and startup parameters are not configured, the HTTP server starts from /code/bootstrap by default.

Requirements on HTTP server configurations

When you create an HTTP server, make sure that the following requirements are met:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4