edamame-load-test / edamame

A distributed load testing framework for real-time collaboration apps (HTTP and WebSockets)
5 stars 1 forks source link

Dynamic username/password for db connections #74

Closed gcpinckert closed 1 year ago

gcpinckert commented 1 year ago

Applies the following changes:

TODO:

westrachel commented 1 year ago

I got an "[01:59:54:492] ✖ Error creating cluster: Error: ENOENT: no such file or directory, open '/Users/rachwest/Desktop/edamame/manifests/properties/psql.env'" when running edamame init, but adding an empty properties subdirectory and re-running 'edamame init' fixed it. When I ran a test, the grafana dashboard couldn't query from the database because password authentication failed for the "edamame" user, but I think I need to teardown my cluster and remake and re-test to confirm that that's an actual issue and not an issue with my pre-existing cluster/pvc stuff. When I teardown and re-make to re-test I'll remove the properties subfolder that I just made and see if I run into that properties subfolder doesn't exist issue again, because I don't think we had that issue yesterday when writing the psql.env file for the first time.

gcpinckert commented 1 year ago

I think this might be an issue because I had already made the properties subfolder, and never deleted it, just the file. It's probably better to store the env stuff in the manifests folder or even the root dir. I'll go ahead and make the changes while your cluster resets.

gcpinckert commented 1 year ago

Linking issue #29 and #20 for posterity.

westrachel commented 1 year ago

data is showing up in grafana after tearing down/remaking the cluster! I think we're good to merge this after the change is made for removing writing the psql.env file to a nonexistent /properties subfolder

gcpinckert commented 1 year ago

I've been able to successfully create a cluster and run a test after making the change to store the env file directly in the manifests folder. This seemed easiest, since the file.path method automatically applies this relative path directly to filenames.