Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

RUN go test ./... -v && make -C pagebroker test

# =============================================================================
# Stage: PageBroker Builder
# =============================================================================
FROM go-base AS pagebroker-builder

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libprotobuf-dev \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/*
Comment thread
dfeigin-nv marked this conversation as resolved.

RUN make -C pagebroker daemon

# =============================================================================
# Stage: Builder - Build Go binaries
# =============================================================================
Expand Down Expand Up @@ -189,6 +202,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libnet1 \
libnl-3-200 \
libnl-route-3-200 \
libprotobuf32t64 \
libprotobuf-c1 \
libgnutls30t64 \
libnftables1 \
Expand Down Expand Up @@ -242,6 +256,10 @@ RUN chmod +x /usr/local/sbin/cuda-checkpoint /usr/local/bin/cuda-checkpoint-help

# Copy the built binaries
COPY --from=builder /snapshot-agent /usr/local/bin/snapshot-agent
COPY --from=pagebroker-builder /workspace/pagebroker/pagebroker /usr/local/bin/pagebroker
RUN output=$(/usr/local/bin/pagebroker 2>&1); status=$?; \
[ "$status" -eq 2 ]; \
[ "$output" = "usage: pagebroker socket_path staging_directory storage_root --max-concurrent-requests max_concurrent_requests" ]

# Assemble the injection bundle: bind-mounted read-only into the placeholder's
# mount namespace at /tmp/snapshot-binaries during restore (internal/nsmount).
Expand Down
2 changes: 1 addition & 1 deletion agent/pagebroker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN make daemon

FROM ubuntu:24.04

RUN apt-get update && apt-get install -y --no-install-recommends libprotobuf32 \
RUN apt-get update && apt-get install -y --no-install-recommends libprotobuf32t64 \
&& rm -rf /var/lib/apt/lists/*

COPY --from=build /src/pagebroker /usr/local/bin/pagebroker
Expand Down
10 changes: 10 additions & 0 deletions charts/snapshot/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,22 @@ spec:
- name: pagebroker
image: "{{ .Values.pageBroker.image.repository }}:{{ .Values.pageBroker.image.tag }}"
imagePullPolicy: {{ .Values.pageBroker.image.pullPolicy }}
command:
{{- with .Values.pageBroker.command }}
{{- toYaml . | nindent 12 }}
{{- else }}
- /usr/local/bin/pagebroker
{{- end }}
args:
{{- with .Values.pageBroker.args }}
{{- toYaml . | nindent 12 }}
{{- else }}
- {{ printf "%s/pagebroker.sock" $pageBrokerControlPath | quote }}
- {{ $pageBrokerStagingPath | quote }}
- {{ .Values.storage.pvc.basePath | quote }}
- --max-concurrent-requests
- {{ .Values.pageBroker.maxConcurrentRequests | quote }}
{{- end }}
Comment thread
dfeigin-nv marked this conversation as resolved.
resources:
{{- toYaml .Values.pageBroker.resources | nindent 12 }}
volumeMounts:
Expand Down
2 changes: 2 additions & 0 deletions charts/snapshot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ storage:

pageBroker:
enabled: false
command: []
args: []
maxConcurrentRequests: 16
stagingSizeLimit: 64Gi
resources:
Expand Down