diff include/freeDiameter/libfdcore.h @ 1397:239ba25870d8

Allow parametrizing the number of threads for routing in/out. This is for high-load situations where freeDiameter was limited by the corresponding queues.
author Thomas Klausner <tk@giga.or.at>
date Fri, 15 Nov 2019 11:40:37 +0100
parents 188c82b6690b
children b09f1b4c9fad
line wrap: on
line diff
--- a/include/freeDiameter/libfdcore.h	Fri Nov 15 11:38:30 2019 +0100
+++ b/include/freeDiameter/libfdcore.h	Fri Nov 15 11:40:37 2019 +0100
@@ -137,7 +137,12 @@
 	regex_t		 cnf_processing_peers_pattern_regex;	/* Regex pattern for identifying processing peers */
 	struct fd_list	 cnf_apps;	/* Applications locally supported (except relay, see flags). Use fd_disp_app_support to add one. list of struct fd_app. */
 	uint16_t	 cnf_dispthr;	/* Number of dispatch threads to create */
+	uint16_t     cnf_rtinthr;  /* Number of routing in threads to create */
+	uint16_t     cnf_rtoutthr;  /* Number of routing out threads to create */
 	uint16_t	 cnf_rr_in_answers;	/* include Route-Record AVP in answers */
+	int		 cnf_qin_limit;	/* limit for incoming queue*/
+	int		 cnf_qout_limit;	/* limit for outgoing queue */
+	int		 cnf_qlocal_limit;	/* limit for local queue */
 	struct {
 		unsigned no_fwd : 1;	/* the peer does not relay messages (0xffffff app id) */
 		unsigned no_ip4 : 1;	/* disable IP */
"Welcome to our mercurial repository"