Skip to content

Improve processing of data to be scalable #93

Open

Description

The SimulatedBaseClusterStateProvider requires an abstract method, process_data, to be implemented by child classes. Some of those child classes have implemented that method by reading the entire csv file. While this works, it is not scalable and can potentially have issues when data contained in *perf_event_log.csv file grows large. For an example, see https://github.com/microsoft/vasim/blob/main/src/vasim/recommender/cluster_state_provider/FileClusterStateProvider.py#L153C25-L153C26.

Task: Improve process_data methods under all the *ClusterStateProvider classes to be scalable as the size of the log files grows. Some techniques to explore scalability are:

  • Chunking: Read the CSV file in chunks instead of loading the entire file into memory.
  • Parallel Processing: Use parallel processing to read and process multiple chunks simultaneously.
  • Efficient Libraries: Use efficient libraries like pandas for data manipulation and dask for parallel computing.

Activity

  1. added
    refactor
    on Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions