mirror of
https://codeberg.org/scip/pgidler.git
synced 2025-12-16 12:01:01 +01:00
upd to go 1.24
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pgidler
|
||||||
3
Makefile
3
Makefile
@@ -26,9 +26,6 @@ all: buildlocal
|
|||||||
buildlocal:
|
buildlocal:
|
||||||
CGO_LDFLAGS='-static' go build -tags osusergo,netgo -ldflags="-extldflags=-static -s"
|
CGO_LDFLAGS='-static' go build -tags osusergo,netgo -ldflags="-extldflags=-static -s"
|
||||||
|
|
||||||
install: buildlocal
|
|
||||||
kubectl cp $(tool) $(pod):$(dir)/$(tool)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(tool) coverage.out
|
rm -rf $(tool) coverage.out
|
||||||
|
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -17,15 +17,6 @@ This is an implementation of a tool described at [AWS Blog: Performance impact o
|
|||||||
Run `make` to compile. You'll need Golang. The repo contains a
|
Run `make` to compile. You'll need Golang. The repo contains a
|
||||||
pre-compiled binary for linux amd.
|
pre-compiled binary for linux amd.
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
Switch to a cluster context and there into the namespace of the pod on
|
|
||||||
which you'd like to install the tool. Select the pod and execute:
|
|
||||||
|
|
||||||
```
|
|
||||||
make install pod=PODNAME
|
|
||||||
```
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
`pgidler` offers two idle modes:
|
`pgidler` offers two idle modes:
|
||||||
@@ -45,3 +36,16 @@ Usage of ./pgidler:
|
|||||||
-t, --timeout int Wether to stop the clients after N seconds
|
-t, --timeout int Wether to stop the clients after N seconds
|
||||||
-u, --user string Database user (default "postgres")
|
-u, --user string Database user (default "postgres")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Report bugs
|
||||||
|
|
||||||
|
[Please open an issue](https://codeberg.org/scip/pgidler/issues). Thanks!
|
||||||
|
|
||||||
|
# License
|
||||||
|
|
||||||
|
This work is licensed under the terms of the General Public Licens
|
||||||
|
version 3.
|
||||||
|
|
||||||
|
# Author
|
||||||
|
|
||||||
|
Copyleft (c) 2024 Thomas von Dein
|
||||||
|
|||||||
4
go.mod
4
go.mod
@@ -1,8 +1,8 @@
|
|||||||
module pgidler
|
module pgidler
|
||||||
|
|
||||||
go 1.19
|
go 1.24
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/lib/pq v1.10.9
|
github.com/lib/pq v1.10.9
|
||||||
github.com/spf13/pflag v1.0.5
|
github.com/spf13/pflag v1.0.10
|
||||||
)
|
)
|
||||||
|
|||||||
2
go.sum
2
go.sum
@@ -2,3 +2,5 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
|
|||||||
github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
||||||
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||||
|
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
|
||||||
|
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||||
|
|||||||
Reference in New Issue
Block a user