같은 솔루션 내의 다른 프로젝트의 헤더파일이나 소스파일을 include하고 싶을 경우에는

프로젝트의 속성 -> C/C++ -> General 에서 Additional Include Directories의 항목에 적절한 패스를 추가해주면 된다.



갑자기 스크립트 언어가 하고 싶어져서 시작해보는 루아

윈도우에서 설치할꺼다

http://code.google.com/p/luaforwindows/ 요기서 Lua for windows 받아서 설치~

http://www.lua.org/ 리눅스 버전은 요기서 다운로드~

 

루아를 받아서 설치하고 나면 한줄씩 실행 해볼 수 있는 요런 커맨드라인과

(hello world를 띄워 보았다.)

SCiTE 라는 편집기가 설치가 된다.

 

 

하지만!! 나는 이클립스를 사랑하는 게으른 개발자.
플러그인이 있으면 따뜻하겠지....

2012년 9월 24일 현재
Lua - http://luaeclipse.luaforge.net/update-site/site.xml 사이트로 제공이 되고 있다.

이클립스에서 Window -> Install new software 로 가서 사이트를 추가하자!
그러면 아래 화면이 나온다

덮어놓고 LuaEclipse 1.2구나 해서 전체 선택한다음 설치하면 오류나니까 주의!
안에 보면 Lua Development Tool 이 두개가 있는것이 보인다.

위에 있는게 32비트용, 아래가 64비트용이다. 둘 중 맞는걸로 설치해주자.

라고 하고 설치하려고 했는데 설치가 안된다 -_-......뭐지 집에서 32비트용으로 설치할 땐 됐는데....
뭔가 문제가 있나보다 - -)

여튼 설치하고 나서 new project 해보면 루아가 있는 걸 확인할 수 있을게다

에잉 = =) 64비트 지원은 아직 안되나보네...

What is Ganglia?

Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. It is based on a hierarchical design targeted at federations of clusters. It leverages widely used technologies such as XML for data representation, XDR for compact, portable data transport, and RRDtool for data storage and visualization. It uses carefully engineered data structures and algorithms to achieve very low per-node overheads and high concurrency. The implementation is robust, has been ported to an extensive set of operating systems and processor architectures, and is currently in use on thousands of clusters around the world. It has been used to link clusters across university campuses and around the world and can scale to handle clusters with 2000 nodes.

그렇다 -_-; 다시말해 갱그리아는 클러스터 모니터링 툴이라고 할 수 있다.

이를 이용해서 카산드라 서버을 모니터링 해보고자 한다.

고고고!

 

1. 설치

apt-get은 진짜 요즘 세상 좋아졌다-_- 라는 말이 절로 나오게 만든다.

apt-get install ganglia-monitor

 

2. 설정

vi /etc/ganglia/gmond.conf

globals {
  daemonize = yes
  setuid = yes
  user = root
  debug_level = 0
  max_udp_msg_len = 1472
  mute = no
  deaf = no
  host_dmax = 0 /*secs */
  cleanup_threshold = 300 /*secs */
  gexec = no
  send_metadata_interval = 0
}

cluster {
  name = "Cassandra cluster"
  owner = "Cardia"
  latlong = "unspecified"
  url = "unspecified"
}

host {
  location = "unspecified"
}

udp_send_channel {
  host = node1
  port = 86
  ttl = 1
}

udp_recv_channel {
  port = 8661
}

tcp_accept_channel {
  port = 8661
}

설정을 막 하고 나면 ganglia에서 데몬을 돌리고 있는 상태이므로 
sudo service ganglia-monitor restart

ps aux | grep gmond
해서 원하는 유저의 이름으로 gmond가 돌아가고 있는지 확인한다.

+ Recent posts