forked from iipc/openwayback
-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathia-web-archive-cdx-server-config.cdx.gz
More file actions
169 lines (146 loc) · 6.27 KB
/
ia-web-archive-cdx-server-config.cdx.gz
File metadata and controls
169 lines (146 loc) · 6.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?xml version="1.0" encoding="UTF-8"?>
<!-- IA web archive cdx server config
This file represents a part of the config used by the CDX server at web.archive.org/cdx
This config is included by the top-level CDX server config, which is not open-source at this time
The following properties are set externally
wayback.maxHostConn=<Max Host Connections>
wayback.maxTotalConn=<Max Total Connections>
wayback.datadir=<Home Path for CDX Indexs>
wayback.numBlocksPerPage=<Num ZipNum Blocks Per Page>
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
<!-- Shared Block Loader -->
<bean id="zipBlockLoader" class="org.archive.format.gzip.zipnum.ZipNumBlockLoader">
<property name="maxHostConnections" value="${wayback.maxHostConn}"/>
<property name="maxTotalConnections" value="${wayback.maxTotalConn}"/>
<property name="noKeepAlive" value="true"/>
<property name="bufferFully" value="true"/>
<property name="useNio" value="true"/>
</bean>
<!-- Cluster Setup: Main "Big" Cluster -->
<bean name="fullBig" class="org.archive.format.gzip.zipnum.ZipNumCluster" init-method="init">
<property name="summaryFile" value="${wayback.datadir}/index/active/ALL.summary" />
<property name="locFile" value="${wayback.datadir}/index/active/ALL.loc" />
<property name="useNio" value="true"/>
<property name="binsearchBlockSize" value="512"/>
<property name="readaheadSize" value="256"/>
<property name="blockLoader" ref="zipBlockLoader"/>
<property name="cacheRemoteLoc" value="true"/>
</bean>
<!-- Delta Medium -->
<bean name="deltaMedium" class="org.archive.format.gzip.zipnum.ZipNumCluster" init-method="init">
<property name="summaryFile" value="${wayback.datadir}/deltacdx/full/ALL.summary" />
<property name="locFile" value="${wayback.datadir}/deltacdx/full/ALL.loc" />
<property name="useNio" value="true"/>
<property name="binsearchBlockSize" value="512"/>
<property name="readaheadSize" value="256"/>
<property name="blockLoader" ref="zipBlockLoader"/>
<property name="cdxLinesPerBlock" value="1000"/>
<property name="cacheRemoteLoc" value="true"/>
</bean>
<!-- Delta Small -->
<bean name="deltaSmall" class="org.archive.format.gzip.zipnum.ZipNumCluster" init-method="init">
<property name="summaryFile" value="${wayback.datadir}/deltacdx/delta/ALL.summary" />
<property name="locFile" value="${wayback.datadir}/deltacdx/delta/ALL.loc" />
<property name="useNio" value="true"/>
<property name="binsearchBlockSize" value="512"/>
<property name="readaheadSize" value="256"/>
<property name="blockLoader" ref="zipBlockLoader"/>
</bean>
<bean name="all" class="org.archive.format.cdx.MultiCDXInputSource">
<property name="cdx">
<list>
<ref bean="fullBig"/>
<ref bean="deltaMedium"/>
<ref bean="deltaSmall"/>
</list>
</property>
</bean>
<bean name="fullDelta" class="org.archive.format.cdx.MultiCDXInputSource">
<property name="cdx">
<list>
<ref bean="fullBig"/>
<ref bean="deltaMedium"/>
</list>
</property>
</bean>
<bean name="delta" class="org.archive.format.cdx.MultiCDXInputSource">
<property name="cdx">
<list>
<ref bean="deltaMedium"/>
<ref bean="deltaSmall"/>
</list>
</property>
</bean>
<!-- HowMany JSP -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/>
<property name="prefix">
<value>/WEB-INF/jsps/</value>
</property>
<property name="suffix">
<value>.jsp</value>
</property>
</bean>
<!-- HowMany Controller -->
<bean name="howmany" class="org.archive.cdxserver.HowManyController">
<property name="mainCluster" ref="fullBig" />
<property name="allClusters">
<map>
<entry key="big">
<list>
<ref bean="fullBig"/>
</list>
</entry>
<entry key="medium">
<list>
<ref bean="deltaMedium"/>
</list>
</entry>
<entry key="small">
<list>
<ref bean="deltaSmall"/>
</list>
</entry>
<entry key="delta">
<list>
<ref bean="deltaMedium"/>
<ref bean="deltaSmall"/>
</list>
</entry>
<entry key="all">
<list>
<ref bean="fullBig"/>
<ref bean="deltaMedium"/>
<ref bean="deltaSmall"/>
</list>
</entry>
</map>
</property>
<property name="authChecker" ref="authCheck"/>
<property name="surtMode" value="true" />
<property name="ajaxAccessControl" value="*"/>
</bean>
<bean name="cdxServer" class="org.archive.cdxserver.CDXServer">
<property name="zipnumSource" ref="fullBig" />
<property name="pageSize" value="${wayback.numBlocksPerPage}"/>
<property name="queryMaxLimit" value="150000"/>
<property name="cdxSource" ref="all" />
<property name="cdxFormat" value="cdx11"/>
<property name="defaultParams" ref="defaultParams"/>
<property name="pageParams" ref="pageParams"/>
<property name="authChecker" ref="authCheck"/>
<property name="surtMode" value="true" />
<property name="ajaxAccessControl" value="*"/>
</bean>
</beans>