yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/multicloud/aws/dbinstance_const.go (about) 1 // Copyright 2019 Yunion 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package aws 16 17 type SDBInstanceSpec struct { 18 VcpuCount int 19 VmemSizeMb int 20 } 21 22 var DBInstanceSpecs = map[string]SDBInstanceSpec{ 23 "db.m1.small": {VcpuCount: 1, VmemSizeMb: 1.75 * 1024.0}, 24 "db.m1.medium": {VcpuCount: 1, VmemSizeMb: 3.75 * 1024.0}, 25 "db.m1.large": {VcpuCount: 2, VmemSizeMb: 7.5 * 1024}, 26 "db.m1.xlarge": {VcpuCount: 4, VmemSizeMb: 15 * 1024}, 27 28 "db.t3.micro": {VcpuCount: 2, VmemSizeMb: 1 * 1024}, 29 "db.t3.small": {VcpuCount: 2, VmemSizeMb: 2 * 1024}, 30 "db.t3.medium": {VcpuCount: 2, VmemSizeMb: 4 * 1024}, 31 "db.t3.large": {VcpuCount: 2, VmemSizeMb: 8 * 1024}, 32 "db.t3.xlarge": {VcpuCount: 4, VmemSizeMb: 16 * 1024}, 33 "db.t3.2xlarge": {VcpuCount: 8, VmemSizeMb: 32 * 1024}, 34 35 "db.t2.micro": {VcpuCount: 1, VmemSizeMb: 1 * 1024}, 36 "db.t2.small": {VcpuCount: 1, VmemSizeMb: 1 * 1024}, 37 "db.t2.medium": {VcpuCount: 2, VmemSizeMb: 2 * 1024}, 38 "db.t2.large": {VcpuCount: 2, VmemSizeMb: 2 * 1024}, 39 "db.t2.xlarge": {VcpuCount: 4, VmemSizeMb: 4 * 1024}, 40 "db.t2.2xlarge": {VcpuCount: 8, VmemSizeMb: 8 * 1024}, 41 42 "db.t4g.micro": {VcpuCount: 2, VmemSizeMb: 1 * 1024}, 43 "db.t4g.small": {VcpuCount: 2, VmemSizeMb: 2 * 1024}, 44 "db.t4g.medium": {VcpuCount: 2, VmemSizeMb: 4 * 1024}, 45 "db.t4g.large": {VcpuCount: 2, VmemSizeMb: 8 * 1024}, 46 "db.t4g.xlarge": {VcpuCount: 4, VmemSizeMb: 16 * 1024}, 47 "db.t4g.2xlarge": {VcpuCount: 8, VmemSizeMb: 32 * 1024}, 48 49 "db.m6g.large": {VcpuCount: 2, VmemSizeMb: 8 * 1024}, 50 "db.m6g.xlarge": {VcpuCount: 4, VmemSizeMb: 16 * 1024}, 51 "db.m6g.2xlarge": {VcpuCount: 8, VmemSizeMb: 32 * 1024}, 52 "db.m6g.4xlarge": {VcpuCount: 16, VmemSizeMb: 64 * 1024}, 53 "db.m6g.8xlarge": {VcpuCount: 32, VmemSizeMb: 128 * 1024}, 54 "db.m6g.12xlarge": {VcpuCount: 48, VmemSizeMb: 192 * 1024}, 55 "db.m6g.16xlarge": {VcpuCount: 64, VmemSizeMb: 256 * 1024}, 56 57 "db.m5.large": {VcpuCount: 2, VmemSizeMb: 8 * 1024}, 58 "db.m5.xlarge": {VcpuCount: 4, VmemSizeMb: 16 * 1024}, 59 "db.m5.2xlarge": {VcpuCount: 8, VmemSizeMb: 32 * 1024}, 60 "db.m5.4xlarge": {VcpuCount: 16, VmemSizeMb: 64 * 1024}, 61 "db.m5.8xlarge": {VcpuCount: 32, VmemSizeMb: 128 * 1024}, 62 "db.m5.12xlarge": {VcpuCount: 48, VmemSizeMb: 192 * 1024}, 63 "db.m5.16xlarge": {VcpuCount: 64, VmemSizeMb: 256 * 1024}, 64 "db.m5.24xlarge": {VcpuCount: 96, VmemSizeMb: 384 * 1024}, 65 66 "db.m5d.large": {VcpuCount: 2, VmemSizeMb: 8 * 1024}, 67 "db.m5d.xlarge": {VcpuCount: 4, VmemSizeMb: 16 * 1024}, 68 "db.m5d.2xlarge": {VcpuCount: 8, VmemSizeMb: 32 * 1024}, 69 "db.m5d.4xlarge": {VcpuCount: 16, VmemSizeMb: 64 * 1024}, 70 "db.m5d.8xlarge": {VcpuCount: 32, VmemSizeMb: 128 * 1024}, 71 "db.m5d.12xlarge": {VcpuCount: 48, VmemSizeMb: 192 * 1024}, 72 "db.m5d.16xlarge": {VcpuCount: 64, VmemSizeMb: 256 * 1024}, 73 "db.m5d.24xlarge": {VcpuCount: 96, VmemSizeMb: 384 * 1024}, 74 75 "db.r6g.large": {VcpuCount: 2, VmemSizeMb: 16 * 1024}, 76 "db.r6g.xlarge": {VcpuCount: 4, VmemSizeMb: 32 * 1024}, 77 "db.r6g.2xlarge": {VcpuCount: 8, VmemSizeMb: 64 * 1024}, 78 "db.r6g.4xlarge": {VcpuCount: 16, VmemSizeMb: 128 * 1024}, 79 "db.r6g.8xlarge": {VcpuCount: 32, VmemSizeMb: 256 * 1024}, 80 "db.r6g.12xlarge": {VcpuCount: 48, VmemSizeMb: 384 * 1024}, 81 "db.r6g.16xlarge": {VcpuCount: 64, VmemSizeMb: 512 * 1024}, 82 83 "db.r6gd.medium": {VcpuCount: 1, VmemSizeMb: 8 * 1024}, 84 "db.r6gd.large": {VcpuCount: 2, VmemSizeMb: 16 * 1024}, 85 "db.r6gd.xlarge": {VcpuCount: 4, VmemSizeMb: 32 * 1024}, 86 "db.r6gd.2xlarge": {VcpuCount: 8, VmemSizeMb: 64 * 1024}, 87 "db.r6gd.4xlarge": {VcpuCount: 16, VmemSizeMb: 128 * 1024}, 88 "db.r6gd.8xlarge": {VcpuCount: 32, VmemSizeMb: 256 * 1024}, 89 "db.r6gd.12xlarge": {VcpuCount: 48, VmemSizeMb: 383 * 1024}, 90 "db.r6gd.16xlarge": {VcpuCount: 64, VmemSizeMb: 512 * 1024}, 91 "db.r6gd.metal": {VcpuCount: 64, VmemSizeMb: 512 * 1024}, 92 93 "db.r5.large": {VcpuCount: 2, VmemSizeMb: 16 * 1024}, 94 "db.r5.xlarge": {VcpuCount: 4, VmemSizeMb: 32 * 1024}, 95 "db.r5.2xlarge": {VcpuCount: 8, VmemSizeMb: 64 * 1024}, 96 "db.r5.4xlarge": {VcpuCount: 16, VmemSizeMb: 128 * 1024}, 97 "db.r5.8xlarge": {VcpuCount: 32, VmemSizeMb: 256 * 1024}, 98 "db.r5.12xlarge": {VcpuCount: 48, VmemSizeMb: 384 * 1024}, 99 "db.r5.16xlarge": {VcpuCount: 64, VmemSizeMb: 512 * 1024}, 100 "db.r5.24xlarge": {VcpuCount: 96, VmemSizeMb: 768 * 1024}, 101 102 "db.r5b.large": {VcpuCount: 2, VmemSizeMb: 16 * 1024}, 103 "db.r5b.xlarge": {VcpuCount: 4, VmemSizeMb: 32 * 1024}, 104 "db.r5b.2xlarge": {VcpuCount: 8, VmemSizeMb: 64 * 1024}, 105 "db.r5b.4xlarge": {VcpuCount: 16, VmemSizeMb: 128 * 1024}, 106 "db.r5b.8xlarge": {VcpuCount: 32, VmemSizeMb: 256 * 1024}, 107 "db.r5b.12xlarge": {VcpuCount: 48, VmemSizeMb: 384 * 1024}, 108 "db.r5b.16xlarge": {VcpuCount: 64, VmemSizeMb: 512 * 1024}, 109 "db.r5b.24xlarge": {VcpuCount: 96, VmemSizeMb: 768 * 1024}, 110 111 "db.r5d.large": {VcpuCount: 2, VmemSizeMb: 16 * 1024}, 112 "db.r5d.xlarge": {VcpuCount: 4, VmemSizeMb: 32 * 1024}, 113 "db.r5d.2xlarge": {VcpuCount: 8, VmemSizeMb: 64 * 1024}, 114 "db.r5d.4xlarge": {VcpuCount: 16, VmemSizeMb: 128 * 1024}, 115 "db.r5d.8xlarge": {VcpuCount: 32, VmemSizeMb: 256 * 1024}, 116 "db.r5d.12xlarge": {VcpuCount: 48, VmemSizeMb: 384 * 1024}, 117 "db.r5d.16xlarge": {VcpuCount: 64, VmemSizeMb: 512 * 1024}, 118 "db.r5d.24xlarge": {VcpuCount: 96, VmemSizeMb: 768 * 1024}, 119 120 "db.x1e.xlarge": {VcpuCount: 4, VmemSizeMb: 122 * 1024}, 121 "db.x1e.2xlarge": {VcpuCount: 8, VmemSizeMb: 244 * 1024}, 122 "db.x1e.4xlarge": {VcpuCount: 16, VmemSizeMb: 488 * 1024}, 123 "db.x1e.8xlarge": {VcpuCount: 32, VmemSizeMb: 976 * 1024}, 124 "db.x1e.16xlarge": {VcpuCount: 64, VmemSizeMb: 1952 * 1024}, 125 "db.x1e.32xlarge": {VcpuCount: 128, VmemSizeMb: 3904 * 1024}, 126 127 "db.x1.16xlarge": {VcpuCount: 64, VmemSizeMb: 976 * 1024}, 128 "db.x1.32xlarge": {VcpuCount: 128, VmemSizeMb: 1952 * 1024}, 129 130 "db.z1d.large": {VcpuCount: 2, VmemSizeMb: 16 * 1024}, 131 "db.z1d.xlarge": {VcpuCount: 4, VmemSizeMb: 32 * 1024}, 132 "db.z1d.2xlarge": {VcpuCount: 8, VmemSizeMb: 64 * 1024}, 133 "db.z1d.3xlarge": {VcpuCount: 12, VmemSizeMb: 96 * 1024}, 134 "db.z1d.6xlarge": {VcpuCount: 24, VmemSizeMb: 192 * 1024}, 135 "db.z1d.12xlarge": {VcpuCount: 48, VmemSizeMb: 384 * 1024}, 136 137 "db.r5.large.tpc1.mem2x": {VcpuCount: 2, VmemSizeMb: 32 * 1024}, 138 "db.r5.xlarge.tpc2.mem2x": {VcpuCount: 4, VmemSizeMb: 64 * 1024}, 139 "db.r5.xlarge.tpc2.mem4x": {VcpuCount: 4, VmemSizeMb: 128 * 1024}, 140 "db.r5.2xlarge.tpc1.mem2x": {VcpuCount: 8, VmemSizeMb: 128 * 1024}, 141 "db.r5.2xlarge.tpc2.mem4x": {VcpuCount: 8, VmemSizeMb: 256 * 1024}, 142 "db.r5.2xlarge.tpc2.mem8x": {VcpuCount: 8, VmemSizeMb: 512 * 1024}, 143 "db.r5.4xlarge.tpc2.mem2x": {VcpuCount: 16, VmemSizeMb: 256 * 1024}, 144 "db.r5.4xlarge.tpc2.mem3x": {VcpuCount: 16, VmemSizeMb: 384 * 1024}, 145 "db.r5.4xlarge.tpc2.mem4x": {VcpuCount: 16, VmemSizeMb: 512 * 1024}, 146 "db.r5.6xlarge.tpc2.mem4x": {VcpuCount: 24, VmemSizeMb: 768 * 1024}, 147 "db.r5.8xlarge.tpc2.mem3x": {VcpuCount: 32, VmemSizeMb: 768 * 1024}, 148 "db.r5.12xlarge.tpc2.mem2x": {VcpuCount: 48, VmemSizeMb: 768 * 1024}, 149 150 "db.m4.large": {VcpuCount: 2, VmemSizeMb: 8 * 1024}, 151 "db.m4.xlarge": {VcpuCount: 4, VmemSizeMb: 16 * 1024}, 152 "db.m4.2xlarge": {VcpuCount: 8, VmemSizeMb: 32 * 1024}, 153 "db.m4.4xlarge": {VcpuCount: 16, VmemSizeMb: 64 * 1024}, 154 "db.m4.10xlarge": {VcpuCount: 40, VmemSizeMb: 160 * 1024}, 155 "db.m4.16xlarge": {VcpuCount: 64, VmemSizeMb: 256 * 1024}, 156 157 "db.m3.medium": {VcpuCount: 1, VmemSizeMb: 3.75 * 1024}, 158 "db.m3.large": {VcpuCount: 2, VmemSizeMb: 7.5 * 1024}, 159 "db.m3.xlarge": {VcpuCount: 4, VmemSizeMb: 15 * 1024}, 160 "db.m3.2xlarge": {VcpuCount: 8, VmemSizeMb: 30 * 1024}, 161 162 "db.r3.large": {VcpuCount: 2, VmemSizeMb: 15.25 * 1024}, 163 "db.r3.xlarge": {VcpuCount: 4, VmemSizeMb: 30.5 * 1024}, 164 "db.r3.2xlarge": {VcpuCount: 8, VmemSizeMb: 61 * 1024}, 165 "db.r3.4xlarge": {VcpuCount: 16, VmemSizeMb: 122 * 1024}, 166 "db.r3.8xlarge": {VcpuCount: 32, VmemSizeMb: 244 * 1024}, 167 168 "db.r4.large": {VcpuCount: 2, VmemSizeMb: 15.25 * 1024}, 169 "db.r4.xlarge": {VcpuCount: 4, VmemSizeMb: 30.5 * 1024}, 170 "db.r4.2xlarge": {VcpuCount: 8, VmemSizeMb: 61 * 1024}, 171 "db.r4.4xlarge": {VcpuCount: 16, VmemSizeMb: 122 * 1024}, 172 "db.r4.8xlarge": {VcpuCount: 32, VmemSizeMb: 244 * 1024}, 173 "db.r4.16xlarge": {VcpuCount: 64, VmemSizeMb: 488 * 1024}, 174 175 "db.x2g.medium": {VcpuCount: 1, VmemSizeMb: 16 * 1024}, 176 "db.x2g.large": {VcpuCount: 2, VmemSizeMb: 32 * 1024}, 177 "db.x2g.xlarge": {VcpuCount: 4, VmemSizeMb: 64 * 1024}, 178 "db.x2g.2xlarge": {VcpuCount: 8, VmemSizeMb: 128 * 1024}, 179 "db.x2g.4xlarge": {VcpuCount: 16, VmemSizeMb: 256 * 1024}, 180 "db.x2g.8xlarge": {VcpuCount: 32, VmemSizeMb: 512 * 1024}, 181 "db.x2g.12xlarge": {VcpuCount: 48, VmemSizeMb: 768 * 1024}, 182 "db.x2g.16xlarge": {VcpuCount: 64, VmemSizeMb: 1024 * 1024}, 183 }