| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
9年前发布

Kitsune:一个高效通用的动态软件升级的C语言框架

这个框架保证不关闭程序连接和改变状态的情况下进行软件更新,并且没有额外的性能代价。已在Snort, Tor, Redis, Memcached, Icecast和vsftpd等多个开源软件下进行了验证。一般升级是双进程模式,一个单独更新进程重启主程,这个是自身保存堆栈和连接状态进行升级。

Getting Started  ---------------    1. Build the Kitsune runtime and compiler/transformation generator:    (in Kitsune root directory)  make    2. Build tests in the test/* directories.  Most of these tests  manually initiate an update by calling kitsune_signal_update() rather  than having the user manually initiating the update.    3. Manually initiating an update normally works as follows:    Starting the initial version:    (kitsune root)/bin/driver (version 0).so (args)    To update that process, run:    (kitsune root)/bin/doupd (vN PID) (version N+1).so    Currently, the runtime prints the pid of the running process to  stdout, which can be used in the call to doupd.  (Note that multiple  calls to doupd may be needed for programs that fork, like vsftpd.)    If Kitsune was built for benchmarking, then a benchmarking result  filename is expected by driver between the shared library and its  arguments. [We plan to streamline this later.]    4. Building and updating redis (as an example):    (build kitsune with threading)    cd examples/redis  make    - builds versions of redis from 2.0.0 -> 2.0.4    ../../bin/driver redis-2.0.0/redis-server.so    - starts the redis server under kitsune    (in another terminal)  ../../bin/doupd PID redis-2.0.1/redis-server.so    - you can get PID from the original terminal or just use `pidof      driver` in place of PID in this line (assuming you aren't running      other things under Kitsune simultaneously)    When a program is updated with Kitsune, it generates a log file that  can be found in /tmp/ekiden/PROG.PID (where PROG is the program name  and PID is its pid).    5. Learning Kitsune: currently the tests/ are the best way to see how  the kitsune tools work.        Overview of the Kitsune Repository  ----------------------------------    src/      - contains the Kitsune runtime source code    tools/      - contains the Kitsune compiler and transformation generator    tools/ocaml-src/      - Kitsune specific code    tools/ocaml-src/cil      - Kitsune code linked with cil for compilation    tools/ocaml-src/tools      - xfgen-related code    tools/ocaml-src/common      - code shared between the compiler and xfgen    bin/      - contains the externally used Kitsune header files and the       compiled library    tests/      - a variety of tests ensuring correct behavior in the runtime       library and compilation tools.  These tests provide a good way to       see how the parts of the system work together, and the compilation       process for updating.

项目主页:http://www.open-open.com/lib/view/home/1435738812528

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1435738812528.html
Kitsune C/C++开发