heal instance info cache interval
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
[출처] https://chonnom.com/bbs/board.php?bo_table=OpenStack&wr_id=544&page=0&sca=&sfl=wr_subject%7C%7Cwr_content&stx=&sst=&sod=&spt=0&page=0
'리눅스 > OpenStack' 카테고리의 다른 글
[장애] service nova-consoleauth 호스트 con-217-2 문제 발생.! (0) | 2017.10.26 |
---|---|
원하는 만큼 vm 을 한번에 생성하기 (nova boot --max-count) (0) | 2017.10.19 |
aggregate 에서 컴퓨트 노드 추가, 제거하기 (0) | 2017.09.20 |
컴퓨트 노드 변경 (마이그레이션 migration) 하기 (0) | 2017.09.20 |
블록 스토리지 생성 (ceph) 및 인스턴스에 연결하기 (0) | 2017.07.20 |