Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drawing-app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hlgr
drawing-app
Commits
03f81f8d
Commit
03f81f8d
authored
5 years ago
by
Nayeem Rahman
Browse files
Options
Downloads
Patches
Plain Diff
Set a custom room in tests
parent
7b5219e6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scalability-benchmark/client/spawn-peer.js
+2
-2
2 additions, 2 deletions
scalability-benchmark/client/spawn-peer.js
scalability-benchmark/run.sh
+2
-2
2 additions, 2 deletions
scalability-benchmark/run.sh
with
4 additions
and
4 deletions
scalability-benchmark/client/spawn-peer.js
+
2
−
2
View file @
03f81f8d
import
puppeteer
from
"
puppeteer
"
import
puppeteer
from
"
puppeteer
"
const
app
Host
=
process
.
env
.
APP_
HOST
const
app
Url
=
process
.
env
.
APP_
URL
const
peerIndex
=
parseInt
(
process
.
env
.
PEER_INDEX
)
const
peerIndex
=
parseInt
(
process
.
env
.
PEER_INDEX
)
const
numPeers
=
parseInt
(
process
.
env
.
NUM_PEERS
)
const
numPeers
=
parseInt
(
process
.
env
.
NUM_PEERS
)
...
@@ -11,7 +11,7 @@ const syncTimeout = numPeers * 4000
...
@@ -11,7 +11,7 @@ const syncTimeout = numPeers * 4000
try
{
try
{
// Open the application.
// Open the application.
const
page
=
await
browser
.
newPage
()
const
page
=
await
browser
.
newPage
()
await
page
.
goto
(
app
Host
)
await
page
.
goto
(
app
Url
)
console
.
log
(
`Peer
${
peerIndex
}
: Connected.`
)
console
.
log
(
`Peer
${
peerIndex
}
: Connected.`
)
// Set up observer.
// Set up observer.
...
...
This diff is collapsed.
Click to expand it.
scalability-benchmark/run.sh
+
2
−
2
View file @
03f81f8d
...
@@ -4,7 +4,7 @@ CLIENT_USER=mnr17
...
@@ -4,7 +4,7 @@ CLIENT_USER=mnr17
cd
$(
dirname
$0
)
cd
$(
dirname
$0
)
app_
host
=
"https://lets-draw.live"
app_
url
=
"https://lets-draw.live
?room=test-
$(
date
+%s
)
"
client_hostnames
=
$(
cat
client-hostnames
)
client_hostnames
=
$(
cat
client-hostnames
)
num_peers
=
$(
echo
$client_hostnames
|
wc
-w
)
num_peers
=
$(
echo
$client_hostnames
|
wc
-w
)
...
@@ -33,7 +33,7 @@ for hostname in $client_hostnames; do
...
@@ -33,7 +33,7 @@ for hostname in $client_hostnames; do
ssh
-oStrictHostKeyChecking
=
no
$CLIENT_USER
@
$hostname
"
ssh
-oStrictHostKeyChecking
=
no
$CLIENT_USER
@
$hostname
"
source ~/.nvm/nvm.sh &&
source ~/.nvm/nvm.sh &&
cd ~/client &&
cd ~/client &&
export APP_
HOST
=
$app_
host
&&
export APP_
URL
=
$app_
url
&&
export PEER_INDEX=
$current_peer_index
&&
export PEER_INDEX=
$current_peer_index
&&
export NUM_PEERS=
$num_peers
&&
export NUM_PEERS=
$num_peers
&&
export PUPPETEER_EXECUTABLE_PATH=
\"
/opt/google/chrome/chrome
\"
&&
export PUPPETEER_EXECUTABLE_PATH=
\"
/opt/google/chrome/chrome
\"
&&
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment