Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
378a0f7a
Commit
378a0f7a
authored
9 years ago
by
manuroe
Browse files
Options
Downloads
Patches
Plain Diff
Federation demo start.sh: Fixed --no-rate-limit param in the script
parent
da84946d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
demo/clean.sh
+4
-2
4 additions, 2 deletions
demo/clean.sh
demo/start.sh
+9
-8
9 additions, 8 deletions
demo/start.sh
with
13 additions
and
10 deletions
demo/clean.sh
+
4
−
2
View file @
378a0f7a
...
...
@@ -11,7 +11,9 @@ if [ -f $PID_FILE ]; then
exit
1
fi
find
"
$DIR
"
-name
"*.log"
-delete
find
"
$DIR
"
-name
"*.db"
-delete
for
port
in
8080 8081 8082
;
do
rm
-rf
demo/
$port
rm
-rf
demo/media_store.
$port
done
rm
-rf
$DIR
/etc
This diff is collapsed.
Click to expand it.
demo/start.sh
+
9
−
8
View file @
378a0f7a
...
...
@@ -8,14 +8,6 @@ cd "$DIR/.."
mkdir
-p
demo/etc
# Check the --no-rate-limit param
PARAMS
=
""
if
[
$#
-eq
1
]
;
then
if
[
$1
=
"--no-rate-limit"
]
;
then
PARAMS
=
"--rc-messages-per-second 1000 --rc-message-burst-count 1000"
fi
fi
export
PYTHONPATH
=
$(
readlink
-f
$(
pwd
))
...
...
@@ -35,6 +27,15 @@ for port in 8080 8081 8082; do
-H
"localhost:
$https_port
"
\
--config-path
"
$DIR
/etc/
$port
.config"
\
# Check script parameters
if
[
$#
-eq
1
]
;
then
if
[
$1
=
"--no-rate-limit"
]
;
then
# Set high limits in config file to disable rate limiting
perl
-p
-i
-e
's/rc_messages_per_second.*/rc_messages_per_second: 1000/g'
$DIR
/etc/
$port
.config
perl
-p
-i
-e
's/rc_message_burst_count.*/rc_message_burst_count: 1000/g'
$DIR
/etc/
$port
.config
fi
fi
python
-m
synapse.app.homeserver
\
--config-path
"
$DIR
/etc/
$port
.config"
\
-D
\
...
...
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