# API and build change and fix summaries. Doc correctsions
# and/or changes are not mentioned here; see the commit messages.
+2020 April 7; version 3.7.0
+ The health check support programme was renamed to rmr_probe (RIC-308).
+
2020 April 6; version 3.6.6
Correct bug in SI95 address conversion module (RIC-327)
Correct bug in SI initialisation module
cmake_minimum_required( VERSION 3.5 )
set( major_version "3" ) # should be automatically populated from git tag later, but until CI process sets a tag we use this
-set( minor_version "6" )
-set( patch_level "6" )
+set( minor_version "7" )
+set( patch_level "0" )
set( install_root "${CMAKE_INSTALL_PREFIX}" )
set( install_inc "include/rmr" )
#
# build support tools and setup for their install
-add_executable( health_ck health_ck.c )
+
+# The health_ck binary is deprecated. We will stop building it soon. It is
+# replaced with the rmr_probe binary.
+add_executable( health_ck rmr_probe.c )
add_dependencies( health_ck rmr_si_static )
target_link_libraries( health_ck rmr_si_static;pthread;m )
+add_executable( rmr_probe rmr_probe.c )
+add_dependencies( rmr_probe rmr_si_static )
+target_link_libraries( rmr_probe rmr_si_static;pthread;m )
+
include_directories( ${CMAKE_SOURCE_DIR}/src/rmr/common/include )
# install only into the runtime package
if( NOT DEV_PKG )
install(
- TARGETS health_ck
+ TARGETS health_ck rmr_probe
DESTINATION bin
)
endif()
application using the RMR_CTL_PORT.
Support tools:
- health_ck -- A generic health check application which
+ rmr_probe -- A generic health check application which
sends n messages to the application running
at the indicated host:port and expects to
receive n responses. Exit code is a simple
binary: 0 == received responses, 1 == failure.
-
Support tools are automatically built and included in the
runtime package (deb or rpm).
+
+
+The original name of rmr_probe was health_ck. This was deemed too
+generic and thus is replaced by rmr_probe. We continue to build
+and package health_ck for a few versions allowing any containers
+which use that to avoid breakage.
*/
/*
- Mnemonic: health_ck.c
- Abstract: This is a generic, and very simplistic, health check application
+ Mnemonic: rmr_probe.c
+ Abstract: This sends probe messages to the indicated applications. The only
+ use currently is to send health check messages and wait for a
+ response. It might be extended later and would cause a bit of
+ a redesign, but from the outside the switch to the name rmr_probe
+ makes sense.
+
+ Original abstract which stands until the probe does more:
+ This is a generic, and very simplistic, health check application
which will send n RMR messages to an application (localhost:4560
by default) and expect to receive n responses. Messages are sent
with the message type RIC_HEALTH_CHECK_REQ and responses are
return bin;
}
+static void usage( char* arg0 ) {
+
+ fprintf( stderr, "version 1.0.0\n"
+ "usage: %s [-h host:port] [-n msg-count] [-r] [-t seconds] [-v]\n"
+ "\thost:port may be ip-address:port or name:port of the application\n"
+ "\tmsg-count is the number of health check requests sent; default is 1\n"
+ "\t-r causes a random listen port NOT to be used; 43086 is used instead\n"
+ "\t-v enables some amount of extra verbose output to stderr\n", arg0 );
+}
+
int main( int argc, char** argv ) {
int ai = 1; // arg index
int i;
verbose = 1;
break;
+ case '?': usage( argv[0] );
+ exit( 0 );
+
default:
fprintf( stderr, "[FAIL] unrecognised option: %s\n", argv[ai] );
+ usage( argv[0] );
exit( 1 );
}