Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
swift-kafka
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benedikt von St. Vieth
swift-kafka
Commits
519bc0fc
Commit
519bc0fc
authored
Dec 22, 2016
by
Benedikt von St. Vieth
Browse files
Options
Downloads
Patches
Plain Diff
improve README, rename messagebus_middleware to messagebus.
parent
b5fecdc9
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+23
-3
23 additions, 3 deletions
README.md
messagebus/messagebus.py
+2
-1
2 additions, 1 deletion
messagebus/messagebus.py
proxy-server.conf
+1
-1
1 addition, 1 deletion
proxy-server.conf
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
27 additions
and
6 deletions
README.md
+
23
−
3
View file @
519bc0fc
This project holds code for a integration of OpenStack Swift (Proxy Server) with Kafka.
On Swift requests, messages are send to Kafka. From there, information can be collected by several different persistence layers.
Maybe one wants to have metadata-search functionalities or build namespaces more complex then the flat Swift namespace.
\ No newline at end of file
# swift-kafka
This project holds code for a integration of [OpenStack Swift]
(https://wiki.openstack.org/wiki/Swift) (Proxy Server)
with
[
Apache Kafka
](
https://kafka.apache.org/
)
.
On Swift requests, messages are send to Kafka. From there, information can be
collected by several different persistency layers. Maybe one wants to have
metadata-search functionalities or build namespaces more complex then the flat
Swift namespace.
# Docker:
[
Dockerfile
](
docker/swift/Dockerfile
)
and
[
docker/swift
](
docker/swift
)
are based on
[
this
repository
](
https://github.com/MorrisJobke/docker-swift-onlyone
)
, extended
with our proxy middleware.
In general, Swift is available using:
`swift -A http://127.0.0.1:12345/auth/v1.0 -U test:tester -K testing stat`
# Installation:
You need to install
`python setup.py install`
the code of this repository.
Afterwards the Swift proxy needs the filter configuration shown at
[
proxy-server.conf
](
proxy-server.conf
)
.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
messagebus/messagebus
_middleware
.py
→
messagebus/messagebus.py
+
2
−
1
View file @
519bc0fc
...
...
@@ -33,7 +33,8 @@ class MessagebusMiddleware(object):
:return:
"""
self
.
start_response
=
start_response
request
=
Request
(
env
)
#request = Request(env)
self
.
logger
.
info
(
"
Messagebus Middleware
"
)
return
self
.
app
(
env
,
start_response
)
...
...
This diff is collapsed.
Click to expand it.
proxy-server.conf
+
1
−
1
View file @
519bc0fc
...
...
@@ -3,7 +3,7 @@
pipeline
=
healthcheck
authtoken
keystoneauth
messagebus
proxy
-
server
[
filter
:
messagebus
]
use
=
egg
:
messagebus
#messagebus
_middleware
use
=
egg
:
messagebus
#messagebus
url
=
username
=
password
=
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
519bc0fc
...
...
@@ -29,7 +29,7 @@ setup(
entry_points
=
{
'
paste.filter_factory
'
:
[
'
messagebus =
'
'
messagebus.
'
'
messagebus
_middleware
:
'
'
messagebus:
'
'
filter_factory
'
],
}
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment