Environmental variables

Bork can be configured via environmental variables, for instance with the help of docker-compose. The following environmental variables can be used:

  • PYTHONOPTIMIZE : Disables all assertions
    • Attribute type: Boolean
    • Default value: FALSE
    • Optional
  • POOLTHREADS : Number of Threads each of Bork´s Pools should use
    • Attribute type: Integer
    • Default value: Number of available CPU cores
    • Optional
  • LOGLEVEL : Log level which should be used
    • Attribute type: Integer
    • Possible values: 0=NOTSET, 1=DEBUG, 2=INFO, 3=WARNING, 4=ERROR, 5=CRITICAL
    • Default value: 3
    • Optional
  • SCHEMASDIRPATH : Path to the schemas folder
    • Attribute type: String
    • Default value: ./models/schemas/
    • Optional
  • FIWARESERVICE : Multi tenancy service to be used to search for Agents and to publish Bork related Entities. Orion must run with "-multiservice" command line option
    • Attribute type: String
    • Optional
  • FIWARESERVICEPATH : Entity service path to be used to search for Agents and to publish Bork related Entities
    • Attribute type: String
    • Optional
  • ROOTSCHEMANAME : Filename of the root schema
    • Attribute type: String
    • Default value: RootSchema.json
    • Optional
  • OWNADDRESS : URI which represents the application to the outside
    • Attribute type: String
    • Default value: http://bork:50019
    • Optional
  • ORIONADDRESS : URI of Orion Context Broker
    • Attribute type: String
    • Default value: http://orion:1026
    • Optional: Not needed if default value is sufficient, or PEP and IDM is specified
  • HEARTBEATWINDOWSIZE : Heartbeat history window size
    • Attribute type: Integer
    • Default value: 5
    • Optional
  • JACOBSONGAMMA : Represents the importance of the new measure with respect to the previous ones
    • Attribute type: Float
    • Default value: 0.1
    • Optional
  • JACOBSONBETA : Permit to ponder the variance
    • Attribute type: Float
    • Default value: 1
    • Optional
  • JACOBSONPHI : Permit to ponder the variance
    • Attribute type: Float
    • Default value: 2
    • Optional
  • DELETEAGENTAFTER : Time in seconds after that Bork removes a failed Agent from his system. The Agents associated MonitoredAgent and HeartbeatConfig entity is removed from Orion, and Bork no longer waits for Heartbeats from that Agent. The Agent must update or republish its Agent entity to be reinstated by Bork.
    • Attribute type: Integer
    • Default value: 1800
    • Optional
  • To use IDM and PEP all of the following must be defined:
    • WILMAADDRESS : URI of Wilma (PEP)
      • Attribute type: String
      • Sample value: http://pep:81
    • KEYROCKADDRESS : URI of Keyrock (IDM)
      • Attribute type: String
      • Sample value: http://idm:3000
    • KEYROCKCLIENTID : PEP client id from Keyrock´s webinterface
      • Attribute type: String
      • Sample value: 7fcc2e06-0584-436e-9472-f5b4c5765fcf
    • KEYROCKSECRET : PEP secret from Keyrock´s webinterface
      • Attribute type: String
      • Sample value: b90cf7c1-d0d6-468d-9959-cbb84dd161e8
    • KEYROCKUSERNAME : PEP username from Keyrock´s webinterface
      • Attribute type: String
      • Sample value: admin@test.com
    • KEYROCKPASSWORD : PEP password from Keyrock´s webinterface
      • Attribute type: String
      • Sample value: 1234