PostgREST / postgrest-benchmark

Reproducible benchmark for PostgREST
MIT License
2 stars 0 forks source link

Can't use newer AWS instances #2

Open steve-chavez opened 7 months ago

steve-chavez commented 7 months ago

Problem

Specifying AWS instances like the t4g series fail on NixOps.

Proposal 1

Update NixOps. Not sure if this will solve it as NixOps status is unclear https://github.com/NixOS/nixops/issues/1574.

Proposal 2

Switch to terranix?

Proposal 3

Use plain terraform?

roberth commented 7 months ago

Specifying AWS instances like the t4g series fail on NixOps.

This should work, as non-x86_64 instance support was added in https://github.com/NixOS/nixops-aws/pull/159. You could open an issue there. What's the error?

steve-chavez commented 7 months ago

@roberth Thanks for the feedback!

We're using an old nixpkgs here, I don't think we have that change https://github.com/PostgREST/postgrest-benchmark/blob/262be48d5f070b147d4ff65b3da8e9bacdf194e1/shell.nix#L2-L6

I'll try and upgrade NixOps

roberth commented 7 months ago

I see. Currently I'm fixing the build in Nixpkgs. Nixpkgs 3f2deb9e98 is a somewhat recent one that does build.

roberth commented 7 months ago

Please try with https://github.com/NixOS/nixpkgs/pull/292099

The previous versions had a bug in AMI lookup.

steve-chavez commented 6 months ago

@roberth Sorry for the late reply. Just got some time to try the migration.

I've upgraded to nixpkgs latest (https://github.com/PostgREST/postgrest-benchmark/pull/3), but I'm getting an error:

$ nixops create deploy.nix -d postgrest-bench
usage: nixops [-h] [--version] [--pdb] operation ...
nixops: error: unrecognized arguments: deploy.nix

Checking man nixops and the 2.0 release notes I don't see how to use the create command now. :thinking:

steve-chavez commented 6 months ago

Ah, nixops create does provide a hint:

ValueError: Neither flake.nix nor nixops.nix exists in /home/stevechavez/Projects/postgrest-benchmark