Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hetzner: Add shared vCPU instance types; EUR -> USD #835

Merged
merged 15 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,14 @@ INSERT INTO public.cloud_instances (cloud_provider, instance_group, instance_nam
('digitalocean', 'Medium Size', 'g-32vcpu-128gb', 32, 128, 1.500, 1008.000, '$', '2024-05-15'),
('digitalocean', 'Medium Size', 'm-32vcpu-256gb', 32, 256, 2.000, 1344.000, '$', '2024-05-15'),
('digitalocean', 'Medium Size', 'g-48vcpu-192gb', 48, 192, 2.699, 1814.000, '$', '2024-05-15'),
('hetzner', 'Small Size', 'CPX11', 2, 2, 0.007, 5.180, '', '2024-07-21'),
('hetzner', 'Small Size', 'CPX21', 3, 4, 0.010, 8.980, '', '2024-07-21'),
('hetzner', 'Small Size', 'CCX13', 2, 8, 0.024, 14.860, '', '2024-05-15'),
('hetzner', 'Small Size', 'CCX23', 4, 16, 0.047, 29.140, '', '2024-05-15'),
('hetzner', 'Medium Size', 'CCX33', 8, 32, 0.093, 57.700, '', '2024-05-15'),
('hetzner', 'Medium Size', 'CCX43', 16, 64, 0.184, 114.820, '', '2024-05-15'),
('hetzner', 'Medium Size', 'CCX53', 32, 128, 0.367, 229.060, '', '2024-05-15'),
('hetzner', 'Medium Size', 'CCX63', 48, 192, 0.550, 343.300, '', '2024-05-15');
('hetzner', 'Small Size', 'CPX11', 2, 2, 0.0072, 4.49, '$', '2024-12-10'),
('hetzner', 'Small Size', 'CPX21', 3, 4, 0.0128, 7.99, '$', '2024-12-10'),
('hetzner', 'Small Size', 'CCX13', 2, 8, 0.0216, 13.49, '$', '2024-12-10'),
('hetzner', 'Small Size', 'CCX23', 4, 16, 0.0425, 26.49, '$', '2024-12-10'),
('hetzner', 'Medium Size', 'CCX33', 8, 32, 0.0857, 53.49, '$', '2024-12-10'),
('hetzner', 'Medium Size', 'CCX43', 16, 64, 0.1715, 106.99, '$', '2024-12-10'),
('hetzner', 'Medium Size', 'CCX53', 32, 128, 0.3421, 213.49, '$', '2024-12-10'),
('hetzner', 'Medium Size', 'CCX63', 48, 192, 0.5128, 319.99, '$', '2024-12-10');

ALTER TABLE ONLY public.cloud_instances
ADD CONSTRAINT cloud_instances_pkey PRIMARY KEY (cloud_provider, instance_group, instance_name);
Expand Down Expand Up @@ -351,7 +351,7 @@ INSERT INTO public.cloud_volumes (cloud_provider, volume_type, volume_descriptio
('azure', 'Premium_LRS', 'Premium SSD (Max throughput: 900 MiB/s, Max IOPS: 20,000)', 10, 32000, 0.132, '$', false, '2024-05-15'),
('azure', 'UltraSSD_LRS', 'Ultra SSD (Max throughput: 10,000 MiB/s, Max IOPS: 400,000)', 10, 64000, 0.120, '$', false, '2024-05-15'),
('digitalocean', 'ssd', 'SSD Block Storage (Max throughput: 300 MiB/s, Max IOPS: 7,500)', 10, 16000, 0.100, '$', true, '2024-05-15'),
('hetzner', 'ssd', 'SSD Block Storage (Max throughput: N/A MiB/s, Max IOPS: N/A)', 10, 10000, 0.052, '', true, '2024-05-15');
('hetzner', 'ssd', 'SSD Block Storage (Max throughput: N/A MiB/s, Max IOPS: N/A)', 10, 10000, 0.05, '$', true, '2024-12-10');

ALTER TABLE ONLY public.cloud_volumes
ADD CONSTRAINT cloud_volumes_pkey PRIMARY KEY (cloud_provider, volume_type);
Expand Down
11 changes: 11 additions & 0 deletions console/db/migrations/20241205103951_2.1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ WHERE extension_name IN (
-- +goose Down
DELETE FROM public.postgres_versions
WHERE major_version = 17;


-- Extends 20240520144338_2.0.0_initial_scheme_setup.sql#L217 with more cloud instance types
-- The price is approximate because it is specified for one region and may differ in other regions.
-- aws, gcp, azure: the price is for the region 'US East'
INSERT INTO public.cloud_instances (cloud_provider, instance_group, instance_name, cpu, ram, price_hourly, price_monthly, currency, updated_at) VALUES
('hetzner', 'Small Size', 'CX22', 2, 4, 0.0064 , 3.99, '$', '2024-12-10'),
('hetzner', 'Small Size', 'CX32', 4, 8, 0.0117 , 6.99, '$', '2024-12-10'),
('hetzner', 'Medium Size', 'CX42', 8, 16, 0.0294 , 17.99, '$', '2024-12-10'),
('hetzner', 'Medium Size', 'CX52', 16, 32, 0.0601 , 35.49, '$', '2024-12-10');
nelsonic marked this conversation as resolved.
Show resolved Hide resolved