월간 인기 게시물

게시물 718건
   
heal_instance_info_cache_interval
글쓴이 : 최고관리자 날짜 : 2017-09-25 (월) 10:21 조회 : 6894
                                
1분단위로 인스턴스 네트워크 상태체크 
# tail -f /var/log/neutron/neutron-server.log
...................................................
2017-09-25 10:19:53.822 24829 INFO neutron.wsgi [req-448162bd-dc52-45d1-b2c7-8bb9fe59bb1f 1c3b76bac514414ba0c7ac2233b5ebea 5440c3eab4604978b676ffe6f748a96e - - -] 172.16.217.31 - - [25/Sep/2017 10:19:53] "GET /v2.0/ports.json?tenant_id=12c23eb3174d44e391389c0e69e2a4b8&device_id=3591e5e8-cc80-4e7f-a49f-e915e86faf95 HTTP/1.1" 200 1073 3.262539
2017-09-25 10:19:54.136 24829 INFO neutron.wsgi [req-f3316317-df05-4b2f-b4bb-8598d82ba894 1c3b76bac514414ba0c7ac2233b5ebea 5440c3eab4604978b676ffe6f748a96e - - -] 172.16.217.31 - - [25/Sep/2017 10:19:54] "GET /v2.0/networks.json?id=9a6bafb9-aae2-46b8-b72c-26abd4ea41ec HTTP/1.1" 200 857 0.309153
2017-09-25 10:19:54.400 24829 INFO neutron.wsgi [req-494bde0e-8b4e-4466-877a-49c616c276a7 1c3b76bac514414ba0c7ac2233b5ebea 5440c3eab4604978b676ffe6f748a96e - - -] 172.16.217.31 - - [25/Sep/2017 10:19:54] "GET /v2.0/floatingips.json?fixed_ip_address=172.16.0.13&port_id=ef99e958-676d-420f-8715-98040783e659 HTTP/1.1" 200 609 0.260283
2017-09-25 10:19:54.737 24829 INFO neutron.wsgi [req-007a921b-385e-4fd5-80fb-51288acce0ee 1c3b76bac514414ba0c7ac2233b5ebea 5440c3eab4604978b676ffe6f748a96e - - -] 172.16.217.31 - - [25/Sep/2017 10:19:54] "GET /v2.0/subnets.json?id=67bbebe9-0ce3-4b49-b36b-43495101763d HTTP/1.1" 200 785 0.332609
2017-09-25 10:19:58.015 24829 INFO neutron.wsgi [req-9299fcb2-9323-4cdf-bf5f-20db2a4a1000 1c3b76bac514414ba0c7ac2233b5ebea 5440c3eab4604978b676ffe6f748a96e - - -] 172.16.217.31 - - [25/Sep/2017 10:19:58] "GET /v2.0/ports.json?network_id=9a6bafb9-aae2-46b8-b72c-26abd4ea41ec&device_owner=network%3Adhcp HTTP/1.1" 200 1076 3.274809




기본 interval 수정 (60 --> 120)
ComputeNode
# vim /usr/lib/python2.7/dist-packages/nova/compute/manager.py
165     cfg.IntOpt("heal_instance_info_cache_interval",
166                default=120,

# cp /usr/lib/python2.7/dist-packages/nova/compute/manager.py /usr/lib/python2.7/dist-packages/nova/compute/manager.py_20170925
# sed -i "166s/default=60/default=120/g" /usr/lib/python2.7/dist-packages/nova/compute/manager.py
# /etc/init.d/nova-compute restart 


### 추가 ###

heal_instance_info_cache_interval = 60
(Integer) Interval between instance network information cache updates.

Number of seconds after which each compute node runs the task of querying Neutron for all of its instances networking information, then updates the Nova db with that information. Nova will never update it’s cache if this option is set to 0. If we don’t update the cache, the metadata service and nova-api endpoints will be proxying incorrect network data about the instance. So, it is not recommended to set this option to 0.

Possible values:
Any positive integer in seconds.
Any value <=0 will disable the sync. This is not recommended.

이름 패스워드
스타일
굴림
10pt
<html> <body>
 
 
 
 
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.