Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
004ae69
Merge pull request #22 from Dajeong-Park/ablestack-bronto
Dajeong-Park Aug 24, 2021
3d1dd6d
원복된 소스 변경
Dajeong-Park Aug 24, 2021
af06540
line 정리
Dajeong-Park Aug 25, 2021
f510922
글로벌 설정 추가
Dajeong-Park Aug 25, 2021
e32a1b2
global setting 위치 변경
Dajeong-Park Aug 25, 2021
bbf50ab
Merge branch 'ablestack-bronto' into memory
Dajeong-Park Aug 25, 2021
ea16b29
재수정
Dajeong-Park Aug 25, 2021
b424010
글로벌설정 management 재시작으로 변경
Dajeong-Park Aug 26, 2021
e5fe42a
테스트 코드 삭제 및 정리
Dajeong-Park Aug 26, 2021
f7eaf08
라인정리
Dajeong-Park Aug 26, 2021
90d836f
Merge pull request #24 from ablecloud-team/ablestack-bronto
Dajeong-Park Aug 26, 2021
bc10cdb
Merge pull request #25 from Dajeong-Park/ablestack-bronto
Dajeong-Park Aug 26, 2021
d497a23
vmStats에 Usable 추가
Dajeong-Park Aug 26, 2021
1bb375a
libvirt memstats조회 테스트코드 주석처리
Dajeong-Park Aug 26, 2021
36bac2c
로그 삭제 및 라인정리
Dajeong-Park Aug 26, 2021
c80a472
Mold UI Instance Metrics 목록 및 상세화면의 memory 정보 변경
Dajeong-Park Aug 27, 2021
2ca9046
Merge pull request #26 from ablecloud-team/ablestack-bronto
Dajeong-Park Aug 27, 2021
92b43b5
Merge pull request #27 from Dajeong-Park/ablestack-bronto
Dajeong-Park Aug 27, 2021
ededd9c
오타 수정
Dajeong-Park Aug 27, 2021
0860d43
코드 정리
Dajeong-Park Aug 30, 2021
3baf11a
memstats 조회시 0으로 출력되는 로직 주석처리
Dajeong-Park Aug 30, 2021
d6c2405
오타 수정
Dajeong-Park Aug 30, 2021
3d01477
100프로 초과일때 표시 오류 수정
Dajeong-Park Aug 30, 2021
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
Prev Previous commit
Next Next commit
Merge branch 'ablestack-bronto' into memory
  • Loading branch information
Dajeong-Park authored Aug 25, 2021
commit bbf50abb5adf815b3842bf27be78a6bc587e866c
Original file line number Diff line number Diff line change
Expand Up @@ -3997,48 +3997,7 @@ protected long getMemoryFreeInKBs(Domain dm) throws LibvirtException {
if (ArrayUtils.isEmpty(mems)) {
return NumberUtils.LONG_ZERO;
}
//getMemoryFreeInKBs 메소드는 RSS 값을 출력
int length = mems.length;
for (int i = 0; i < length; i++) {
if (mems[i].getTag() == 7){
s_logger.info("=========getMemoryFreeInKBs tag7=========");
s_logger.info(mems[i].getValue());
s_logger.info("=========getMemoryFreeInKBs tag7=========");
return mems[i].getValue();
}
}
return NumberUtils.LONG_ZERO;
}

protected long getMemoryUsableInKBs(Domain dm) throws LibvirtException {
MemoryStatistic[] mems = dm.memoryStats(NUMMEMSTATS);
if (ArrayUtils.isEmpty(mems)) {
return NumberUtils.LONG_ZERO;
}
s_logger.info("getMemoryUsableInKBs");
s_logger.info(MEM_BALLOONING_AUTO.value());
//getMemoryFreeInKBs 메소드는 USABLE 값을 출력, 단 mem.balloon.auto 설정이나 폴링이 활성화되지 않은 경우 0을 출력
int length = mems.length;
for (int i = 0; i < length; i++) {
if (!MEM_BALLOONING_AUTO.value()) {
s_logger.info("=========memBallooningAuto = false 경우=========");
return NumberUtils.LONG_ZERO;
} else {
s_logger.info("=========memBallooningAuto = true 경우=========");
if (length > 3) {
if (mems[i].getTag() == 8){
s_logger.info("=========getMemoryUsableInKBs tag8=========");
s_logger.info(mems[i].getValue());
s_logger.info("=========getMemoryUsableInKBs tag8=========");
return mems[i].getValue();
}
} else {
s_logger.info("=========memBallooningAuto = true && 폴링이 활성화되지 않은 경우=========");
return NumberUtils.LONG_ZERO;
}
}
}
return NumberUtils.LONG_ZERO;
return mems[0].getValue();
}

private boolean canBridgeFirewall(final String prvNic) {
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.