百度智能云

All Product Document

          Intelligent Edge

          Baetyl-function-python27 Configuration

          By default, the module reads the configuration file from etc/baetyl working directory, and the configuration file format is interpreted as follows:

          server: Configured upon independent start as GRPC Server; not configured when hosted to baetyl-function-mnager. 
            address: CRPC Server monitoring address, <host>:<port> 
            workers: 
              max: CPU nuclear number multiplied by 5 by default, maximum capacity of thread pool. 
            concurrent: 
              max: No restriction by default, and maximum number of concurrent connections. 
            message: 
              length: 
                max: Default value: 4m, Maximum message length allowed to receive/send by function instance. 
            ca: CA certificate path of Server 
            key: Server-side private key path of Server 
            cert: Server-side public key path of Server 
          functions: Function list 
            - name: [Must] Function name, unique in the list 
              handler: [Must] Function package and processing function name, for example: ‘sayhi.handler’ 
              codedir: [Must] Path of Python code 
          logger: Log configuration item 
            path: It is empty by default, i.e., no file is printed; if a file is appointed, it will be output to file. 
            level: Default value: Info, log level, supporting debug, info, warn and error. 
            format: Default value: Text, log print format, supporting text and json 
            age: 
              max: Default value: 15, Maximum number of days a log file is retained 
            size: 
              max: Default value: 50, Log file size limit, unit MB 
            backup: 
                  max:Default value: 15, Maximum number of log files retained 
          Previous
          Baetyl-function-manager Configuration
          Next
          Baetyl-function-sql Configuration