Skip to content

Commit

Permalink
add cpu info
Browse files Browse the repository at this point in the history
  • Loading branch information
maya-barak committed Jul 4, 2024
1 parent f32aec5 commit 02d3d14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/how-to/enforce-permissions/bulk-check.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,15 @@ const permittedResources = resources.filter(

---
### Set Timeout
For setting the timeout for the bulk check, you can set the 'PDP_OPA_CLIENT_QUERY_TIMEOUT' environment variable for the PDP.
Bulk checking is more performance-intensive than regular checking and also takes more time, which can lead to an OPA timeout.
To address this issue, you can increase the query timeout for the PDP and add more CPU to your virtual machine.

If for example you want a 10 second timeout, you can set the environment variable as follows:

```bash
PDP_OPA_CLIENT_QUERY_TIMEOUT=10
```
OPA Runs the authorization query concurrently based on the amount of CPU it has, so if you have a lot of queries to run, you can increase the CPU count to speed up the process.

For more information on system requirements and performance optimization, you can check [this documentation.](/how-to/deploy/deploy-to-production#system-requirements-and-performance-optimization)


Expand Down

0 comments on commit 02d3d14

Please sign in to comment.