How to identify a Bamboo Elastic agent details - using IP address from application logs

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

要約

The purpose of this page is to help identify a Bamboo Elastic agent details when you have an IP address available. We'll try to use Bamboo logs + Bamboo DB to link the IP with the elastic agent.

環境

This has been tested in Bamboo 8.2.4 but the solution will be applicable for any supported version.

ソリューション

When an elastic agent starts, Bamboo will print the following information in <bamboo-home>atlassian-bamboo.log file on the Bamboo server.

[RemoteEC2InstanceImpl] Bamboo has detected that EC2 instance i-06dadf3ea9f3d1041 is now running at 44.201.170.37

With the above information you can get the EC2 instance id which you can query from the DB and get the elastic agent details.

Please follow the instruction below : 

  • First grep <bamboo-home>logs>atlassian-bamboo.log file with Ip address to get the list of EC2 instance, for example below

    grep "44.201.170.37" atlassian-bamboo.log

    You'll see the results as displayed below

    [RemoteEC2InstanceImpl] Bamboo has detected that EC2 instance i-06dadf3ea9f3d1041 is now running at 44.201.170.37

  • From the above log extract the EC2 instance ID, for example i-06dadf3ea9f3d1041 and pass in the below query to get the agent details.

    select * from queue where elastic_instance_id='i-06dadf3ea9f3d1041'

           



最終更新日: 2022 年 12 月 14 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.