#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include "msu_ids.h"
#include "runtime_communication.h"
#include "logging.h"
Go to the source code of this file.
|
char * | socat_cmd [] = { "/usr/bin/socat" , "stdio", "/tmp/haproxy.socket", NULL} |
|
#define N_QLEN_SAMPLES 10 |
#define SOCAT "/usr/bin/socat" |
#define SOCAT_INPUT "set weight https/s%d %d\r\n" |
int reweight_haproxy |
( |
int |
server, |
|
|
int |
weight |
|
) |
| |
void set_haproxy_weights |
( |
int |
rt_id, |
|
|
int |
offset |
|
) |
| |
char* socat_cmd[] = { "/usr/bin/socat" , "stdio", "/tmp/haproxy.socket", NULL} |