docstr: This component checks the performance of a server. The server url is passed to its run method.
  
  Arguments:
      num_users: Number of users emulated by Locust
docstr_tok: ["This","component","checks","the","performance","of","a","server",".","The","server","url","is","passed","to","its","run","method",".","Arguments",":","num_users",":","Number","of","users","emulated","by","Locust"]
code: def __init__(self, num_users: int = 100):
      """This component checks the performance of a server. The server url is passed to its run method.
  
      Arguments:
          num_users: Number of users emulated by Locust
  
      """
      # Note: Using the default port 8089 of Locust.
      super().__init__(
          port=8089,
          parallel=True,
          cloud_build_config=BuildConfig(requirements=["locust"]),
      )
      self.num_users = num_users
  
imports: import os
  import subprocess
  from lightning import BuildConfig, LightningWork
label_desc: Use image node_id 1 to create a new Locust object from inherited base classes: LightningWork with example: obj = Locust(num_users)