Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves examples copy&paste-ability #97

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Improves examples copy&pate-ability
Also fix tomcat port
  • Loading branch information
neykov committed Jul 25, 2016
commit 3e218032cd982cca73c82ef147e26164cca2c113
18 changes: 9 additions & 9 deletions guide/start/policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ Tomcat on the vagrant VMs named "byon1" to "byon4":

{% highlight bash %}
$ for i in byon{1..4}; do
$ vagrant ssh ${i} --command 'ps aux | grep -i tomcat | grep -v grep | awk '\''{print $2}'\'' | xargs kill -9'
$ done
vagrant ssh ${i} --command 'ps aux | grep -i tomcat | grep -v grep | awk '\''{print $2}'\'' | xargs kill -9'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is our magic that used to treat "$" prefix in a special way (putting it into a separate div, so it wouldn't be included if someone highlighted the text to copy-paste it)? I can't find it.

@drigodwin said that he thinks it may have broken at around the same time as someone did a bootstrap upgrade.

@ahgittin @sjcorbett do you know where that code is?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in _layouts/base.html section Clipboard support. I'll investigate.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clipboard support is working fine for me -- just click the icon

would be nice to exclude it from a manual copy/paste but that's harder. gonna experiment with http://stackoverflow.com/questions/22159929/html-exclude-text-from-clipboard-copy

done
{% endhighlight %}

You can view the state of the Tomcat server with the command below (which drills into the
Expand Down Expand Up @@ -435,14 +435,14 @@ you could use a load generator like jmeter, or use a script such as the one show
(changing URL for the URL of your load-balancer):

{% highlight bash %}
$ URL=http://10.10.10.101:8000/
$ URL=http://10.10.10.101:8080/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought nginx would come up on 8000, rather than 8080 (which is the port that the first tomcat would use).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, will revert.

$ for i in {1..600}; do
$ for j in {1..50}; do
$ curl -saefafefj ${URL} > /dev/null || echo "Curl failed with exit code $?"
$ done
$ echo "Finished batch $i"
$ sleep 1
$ done
for j in {1..50}; do
curl -saefafefj ${URL} > /dev/null || echo "Curl failed with exit code $?"
done
echo "Finished batch $i"
sleep 1
done
{% endhighlight %}

While those curl commands run in a separate terminal, you can look at the metrics for the first
Expand Down