Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/charlieegan3/opa-decision-log-test
https://github.com/charlieegan3/opa-decision-log-test
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/charlieegan3/opa-decision-log-test
- Owner: charlieegan3
- Created: 2023-01-31T17:44:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T17:45:23.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T06:31:10.549Z (5 months ago)
- Language: Go
- Size: 106 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Decision Log Payload Size Debugging
Created for [question here](https://github.com/orgs/open-policy-agent/discussions/332) in order to replicate issue.
Steps to use this repo:
1. Clone this repo
2. Install OPA, make sure is in path
2. Run `opa build -o storage/policy.tar.gz -b storage/policy/`
3. Run `opa build -o storage/discovery.tar.gz -b storage/disc`
4. In terminal 1, `cd storage && go run main.go`
5. In terminal 2, `cd declog && go run main.go`
6. In terminal 3, `opa run -s --config-file=config.yaml`
7. Observe the logs in terminal 3, has OPA loaded the bundles ok?
8. In terminal 4, `cd bench && go run main.go`
9. Observe the logs in terminal 2, after 30s OPA sends decision logs. They should all be less than 1048576 bytes in size.The input used in the benchmark is around 450kB. I see log sizes of 594kB.