packer-kali_linux icon indicating copy to clipboard operation
packer-kali_linux copied to clipboard

[FEATURE] change instance size to smaller

Open elreydetoda opened this issue 4 years ago • 4 comments

Deliverable(s)

  • ~set instance to small, doesn't cost as much~
  • [ ] document reasoning as to why not changing instance size

Additional context Possible instances sizes:

  • baremetal_0

link for figuring out all instances: https://www.packet.com/developers/api/plans/#retrieve-all-plans

current plans:

        "c1.large.arm",
        "baremetal_2a",
        "c1.xlarge.x86",
        "baremetal_3",
        "c2.large.arm",
        "c2.medium.x86",
        "c3.medium.x86",
        "c3.small.x86",
        "g2.large.x86",
        "m1.xlarge.x86",
        "baremetal_2",
        "m2.xlarge.x86",
        "m3.large.x86",
        "n2.xlarge.x86",
        "s1.large.x86",
        "baremetal_s",
        "s3.xlarge.x86",
        "t1.small.x86",
        "baremetal_0",
        "x1.small.x86",
        "baremetal_1e",
        "x2.xlarge.x86",
        "x.large.arm"

elreydetoda avatar Sep 24 '20 10:09 elreydetoda

current instance specs (c3.small.x86):

"cpus": [
          {
            "count": 2,
            "type": "Intel Xeon Gold 6126"
          }
        ],
        "memory": {
          "total": "192GB"
        },
        "drives": [
          {
            "count": 1,
            "size": "150GB",
            "type": "SSD"
          },
          {
            "count": 2,
            "size": "480GB",
            "type": "SSD"
          }
        ],
        "nics": [
          {
            "count": 2,
            "type": "10Gbps"
          }
  • price 0.5

  • runtime takes between 30 - 40 min:

  • https://app.circleci.com/pipelines/github/elreydetoda/packer-kali_linux/268/workflows/6caf7d0c-28af-4647-8176-eb982182ea87

  • https://app.circleci.com/pipelines/github/elreydetoda/packer-kali_linux/246/workflows/dec4d087-e0fa-43b2-9717-398837d51a11

elreydetoda avatar Oct 04 '20 07:10 elreydetoda

baremetal_0 specs:

"cpus": [
          {
            "count": 1,
            "type": "Intel Atom C2550 @ 2.4Ghz"
          }
        ],
        "memory": {
          "total": "8GB"
        },
        "drives": [
          {
            "count": 1,
            "size": "80GB",
            "type": "SSD"
          }
        ],
        "nics": [
          {
            "count": 2,
            "type": "1Gbps"
          }
  • price: 0.07
  • probably good if you are doing 1 vm build.
  • runtime was 1hr 22m 15s: https://app.circleci.com/pipelines/github/elreydetoda/packer-kali_linux/254/workflows/8a594cd0-da52-4e60-9786-07bc22c3a433

elreydetoda avatar Oct 04 '20 07:10 elreydetoda

baremetal_1e

"cpus": [
          {
            "count": 1,
            "type": "Intel(R) Xeon(R) CPU E3-1578L v5 @ 2.00GHz"
          }
        ],
        "memory": {
          "total": "32GB"
        },
        "drives": [
          {
            "count": 1,
            "size": "240GB",
            "type": "SSD"
          }
        ],
        "nics": [
          {
            "count": 2,
            "type": "10Gbps"
          }
        ],
  • pricing: 0.4
  • runtime 1h 11m 24s: https://app.circleci.com/pipelines/github/elreydetoda/packer-kali_linux/269/workflows/bcbe4ae8-2609-4b64-b910-90175f08db5b

elreydetoda avatar Oct 04 '20 22:10 elreydetoda

in conclusion, from the information above, I think it doesn't make sense to bump down the instance by $0.10 just to have it possibly take longer and then possibly cost an extra $0.40, because it hit that +1hr mark. So, updating original issue to reflect documenting my reasoning instead of actually swapping out the instance size.

elreydetoda avatar Oct 11 '20 19:10 elreydetoda