{"id":3926,"date":"2019-01-11T22:40:04","date_gmt":"2019-01-11T21:40:04","guid":{"rendered":"http:\/\/bygden.nu\/jonas\/?p=3926"},"modified":"2019-01-11T22:40:08","modified_gmt":"2019-01-11T21:40:08","slug":"increase-ratelimit-in-on-prem-hosted-hipchat-server","status":"publish","type":"post","link":"https:\/\/bygden.nu\/jonas\/index.php\/2019\/01\/11\/increase-ratelimit-in-on-prem-hosted-hipchat-server\/","title":{"rendered":"Increase RateLimit in on-prem hosted HipChat server"},"content":{"rendered":"\n<p>We are programatically sending messages to and creating rooms in our HipChat server using API tokens.\nSometimes you might need to increase the <a href=\"https:\/\/developer.atlassian.com\/server\/hipchat\/hipchat-rest-api-rate-limits\/\">RateLimit<\/a> to be able to process the number of API requests that the server can handle for any particular API token.<\/p>\n\n\n\n<p>This is how we do it:<\/p>\n\n\n\n<p>Start out by finding out the API token for the proper user:<\/p>\n\n\n\n<p>HipChat web -&gt; login as the API user -&gt; Click avatar in upper \nright corner -&gt; choose \u201cAccount Settings\u201d -&gt; \u201cAPI access\u201d -&gt; \nyour tokens will be listed or navigate to \nhttps:\/\/FQDN_of_your_hipchat_server\/account\/api after login<\/p>\n\n\n\n<p>ssh into your HipChat Server as admin and run this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dont-blame-hipchat<br \/>cd \/opt\/atlassian\/hipchat\/sbin\/<br \/>export HIPCHATTOKEN=<your_api_v2_token> export HIPCHATRATELIMIT=10000 \/opt\/atlassian\/hipchat\/virtualenv\/bin\/python _ratelimit.py<\/your_api_v2_token><br \/><your_api_v2_token>curl --include --insecure https:\/\/127.0.0.1\/v2\/user?auth_token=your_apiv2_auth_token | grep Ratelimit<\/your_api_v2_token><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>We are programatically sending messages to and creating rooms in our HipChat server using API tokens. Sometimes you might need to increase the RateLimit to be able to process the number of API requests that the server can handle for any particular API token. This is how we do it: Start out by finding out &#8230; <a title=\"Increase RateLimit in on-prem hosted HipChat server\" class=\"read-more\" href=\"https:\/\/bygden.nu\/jonas\/index.php\/2019\/01\/11\/increase-ratelimit-in-on-prem-hosted-hipchat-server\/\" aria-label=\"Read more about Increase RateLimit in on-prem hosted HipChat server\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-3926","post","type-post","status-publish","format-standard","hentry","category-dagbok"],"_links":{"self":[{"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/posts\/3926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/comments?post=3926"}],"version-history":[{"count":1,"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/posts\/3926\/revisions"}],"predecessor-version":[{"id":3927,"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/posts\/3926\/revisions\/3927"}],"wp:attachment":[{"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/media?parent=3926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/categories?post=3926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bygden.nu\/jonas\/index.php\/wp-json\/wp\/v2\/tags?post=3926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}