load.h 990 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <library/cpp/actors/core/actor.h>
  3. namespace NInterconnect {
  4. // load responder -- lives on every node as a service actor
  5. NActors::IActor* CreateLoadResponderActor();
  6. NActors::TActorId MakeLoadResponderActorId(ui32 node);
  7. // load actor -- generates load with specific parameters
  8. struct TLoadParams {
  9. TString Name;
  10. ui32 Channel;
  11. TVector<ui32> NodeHops; // node ids for the message route
  12. ui32 SizeMin, SizeMax; // min and max size for payloads
  13. ui32 InFlyMax; // maximum number of in fly messages
  14. TDuration IntervalMin, IntervalMax; // min and max intervals between sending messages
  15. bool SoftLoad; // is the load soft?
  16. TDuration Duration; // test duration
  17. bool UseProtobufWithPayload; // store payload separately
  18. };
  19. NActors::IActor* CreateLoadActor(const TLoadParams& params);
  20. }