diff options
author | Jim Jagielski <jim@apache.org> | 2011-01-13 16:58:50 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2011-01-13 16:58:50 +0100 |
commit | daa5a5c57c34b8ce6d2192de6a1ff920317b5f11 (patch) | |
tree | 7e0b08e3777c3382c613baac0af54bf975b0762c /include | |
parent | Use branch now (diff) | |
download | apache2-daa5a5c57c34b8ce6d2192de6a1ff920317b5f11.tar.xz apache2-daa5a5c57c34b8ce6d2192de6a1ff920317b5f11.zip |
OK... a good commit point (we don't quite compile yet though...)
Pull out the worker scoreboard cruft and start moving most
worker stuff to shm. Use slotmem for workers and provide
space for growth.
Redo logic:
ap_proxy_define_*
ap_proxy_create_*
ap_proxy_initialize_*
Right now just for workers, but lay framework for balancers
as well. The idea is to break out the functional parts
to make it easy for dynamics. Defining is simply describing
the worker, and tucking that info away. When we create, we
go ahead and create the shared memory, etc... Initialize
is simply to allow child process to access the shm...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1058622 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/scoreboard.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/scoreboard.h b/include/scoreboard.h index 62108a683f..c0268e8f41 100644 --- a/include/scoreboard.h +++ b/include/scoreboard.h @@ -126,7 +126,6 @@ typedef struct { * should still be serving requests. */ apr_time_t restart_time; - int lb_limit; } global_score; /* stuff which the parent generally writes and the children rarely read */ @@ -139,12 +138,6 @@ struct process_score { */ }; -/* stuff which is lb specific */ -typedef struct lb_score lb_score; -struct lb_score { - unsigned char data[1024]; -}; - /* Scoreboard is now in 'local' memory, since it isn't updated once created, * even in forked architectures. Child created-processes (non-fork) will * set up these indicies into the (possibly relocated) shmem records. @@ -153,7 +146,6 @@ typedef struct { global_score *global; process_score *parent; worker_score **servers; - lb_score *balancers; } scoreboard; typedef struct ap_sb_handle_t ap_sb_handle_t; @@ -182,7 +174,6 @@ AP_DECLARE(worker_score *) ap_get_scoreboard_worker_from_indexes(int child_num, int thread_num); AP_DECLARE(process_score *) ap_get_scoreboard_process(int x); AP_DECLARE(global_score *) ap_get_scoreboard_global(void); -AP_DECLARE(lb_score *) ap_get_scoreboard_lb(int lb_num); AP_DECLARE_DATA extern scoreboard *ap_scoreboard_image; AP_DECLARE_DATA extern const char *ap_scoreboard_fname; @@ -206,19 +197,6 @@ const char *ap_set_reqtail(cmd_parms *cmd, void *dummy, int arg); */ AP_DECLARE_HOOK(int, pre_mpm, (apr_pool_t *p, ap_scoreboard_e sb_type)) -/** - * proxy load balancer - * @return the number of load balancer workers. - */ -APR_DECLARE_OPTIONAL_FN(int, ap_proxy_lb_workers, - (void)); -/** - * proxy load balancer - * @return the size of lb_workers. - */ -APR_DECLARE_OPTIONAL_FN(int, ap_proxy_lb_worker_size, - (void)); - /* for time_process_request() in http_main.c */ #define START_PREQUEST 1 #define STOP_PREQUEST 2 |