Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-18438

Refactor cloud snitches to get rid of duplicate code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0-alpha1, 5.0
    • Local/Other
    • None

    Description

      Nowadays we have got about four public cloud platform snitchs : EC2 snitch for aws, google cloud snitch for google cloud, alibaba cloud snitch for alibaba cloud and multi region snitch for ec2. And the common place for the first three is that we just need to query the zone center to get the ec2 / ecs id , so I think we can refactor the code , and if some new public cloud platform want to add one more snitch for himself, there is no need to pull a pr for him and configure some options in yaml is enough .
      Besides it would be even better that we may reuse the multic region snitch for ec2 for other public cloud platform.

      Attachments

        1. alicloud-snitch.png
          173 kB
          Maxwell Guo
        2. image-2023-07-12-17-28-24-723.png
          68 kB
          Jackson Fleming
        3. image-2023-07-12-17-30-53-158.png
          249 kB
          Jackson Fleming
        4. image-2023-07-12-17-31-37-447.png
          249 kB
          Jackson Fleming

        Issue Links

          Activity

            People

              smiklosovic Stefan Miklosovic
              maxwellguo Maxwell Guo
              Stefan Miklosovic
              Jacek Lewandowski, Jackson Fleming, Maxwell Guo
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h
                  6h