-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support Bearer tokens using a different mutex and queue, remove redundant takeGlobal call on queue * Add LRU support for bearer queues * Document bearer tokens on readme * Prevent queue creation and global hash calculations if the request is going to be routed to another node * Fix some bad mutex locking, add k6 test * More mutex work
- Loading branch information
1 parent
e563ff1
commit d43ecc1
Showing
11 changed files
with
190 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ env: | |
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ nirn-proxy.* | |
nirn-proxy | ||
.env | ||
*.txt | ||
*.log | ||
*.log | ||
k6_tests/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import http from 'k6/http'; | ||
import {check, sleep} from 'k6'; | ||
export const options = { | ||
noConnectionReuse: true, | ||
vus: 50, | ||
iterations: 50 | ||
}; | ||
|
||
export default function() { | ||
const params = { | ||
headers: { 'Authorization': __ENV.TOKEN }, | ||
}; | ||
let res = http.get('http://localhost:8080/api/v9/gateway', params); | ||
check(res, { 'success': (r) => r.status >= 200 && r.status < 400 }); | ||
|
||
let res2 = http.get('http://localhost:8080/api/v9/guilds/203039963636301824', params); | ||
check(res2, { 'success': (r) => r.status >= 200 && r.status < 400 }); | ||
|
||
let res3 = http.get('http://localhost:8080/api/v9/guilds/203039963636301824/channels', params); | ||
check(res3, { 'success': (r) => r.status >= 200 && r.status < 400 }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.