<commit_before>global
	maxconn 100

defaults
	log	global
	mode	tcp
	retries 2
	timeout client 30m
	timeout connect 4s
	timeout server 30m
	timeout check 5s

frontend ft_postgresql
	bind *:5000
	default_backend bk_db

backend bk_db
	option httpchk GET

  server postgresql_127.0.0.1_5432 127.0.0.1:5432 maxconn 100 check port 8008
  server postgresql_127.0.0.1_5433 127.0.0.1:5433 maxconn 100 check port 8009<commit_msg>Fix haproxy configuration to work by default with Patroni.<commit_after>global
	maxconn 100

defaults
	log	global
	mode	tcp
	retries 2
	timeout client 30m
	timeout connect 4s
	timeout server 30m
	timeout check 5s

frontend ft_postgresql
	bind *:5000
	default_backend bk_db

backend bk_db
	option httpchk GET /master
    http-check expect string '"master"'

    server postgresql_127.0.0.1_5432 127.0.0.1:5432 maxconn 100 check port 8008
    server postgresql_127.0.0.1_5433 127.0.0.1:5433 maxconn 100 check port 8009
{'fraction_non_alphanumeric': 0.0481283422459893, 'fraction_numerical': 0.14545454545454545, 'mean_word_length': 4.114754098360656, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6735757', 'n_tokens_mistral': 437, 'n_tokens_neox': 347, 'n_words': 110}