use nix build & meson & zlog
This commit is contained in:
parent
0123623742
commit
346768a144
60 changed files with 13739 additions and 0 deletions
58
src/include/clusterconfig.h
Normal file
58
src/include/clusterconfig.h
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
#if !defined(_CLUSTERCONFIG_H_)
|
||||
|
||||
#define _CLUSTERCONFIG_H_ 1
|
||||
|
||||
#include "xce/types.h"
|
||||
|
||||
typedef struct {
|
||||
int nhash_slots;
|
||||
int delta;
|
||||
} hash_zarray_config_t;
|
||||
|
||||
typedef hash_zarray_config_t jobmgr_config_t;
|
||||
|
||||
typedef hash_zarray_config_t workermgr_config_t;
|
||||
typedef hash_zarray_config_t qmgr_config_t;
|
||||
|
||||
typedef struct {
|
||||
int nhash_slots;
|
||||
int delta;
|
||||
int inst_delta;
|
||||
} resmgr_config_t;
|
||||
|
||||
typedef hash_zarray_config_t xstrings_config_t;
|
||||
|
||||
typedef struct {
|
||||
char* name;
|
||||
char* host;
|
||||
int port;
|
||||
} master_candidate_t;
|
||||
|
||||
typedef struct {
|
||||
char* clustername;
|
||||
int port;
|
||||
int ncandidates;
|
||||
master_candidate_t** candidates;
|
||||
int heartbeat_interval;
|
||||
int inactive_heartbeat_count;
|
||||
int fetch_job_interval;
|
||||
int netio_timeout;
|
||||
int vcpus;
|
||||
int nres;
|
||||
xce_resource_t** resources;
|
||||
int nqueues;
|
||||
xce_queue_t** queues;
|
||||
int nugroups;
|
||||
xce_group_t** ugroups;
|
||||
int nhgroups;
|
||||
xce_group_t** hgroups;
|
||||
int nhconfigs;
|
||||
xce_hostconfig_t** hconfigs;
|
||||
jobmgr_config_t* jobmgr;
|
||||
workermgr_config_t* workermgr;
|
||||
qmgr_config_t* qmgr;
|
||||
resmgr_config_t* resmgr;
|
||||
xstrings_config_t* xstrings;
|
||||
} cluster_config_t;
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue