Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
perso-distributed-systems
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
xavier.perret
perso-distributed-systems
Commits
e23be2c3
Commit
e23be2c3
authored
2 years ago
by
Xavier Perret
Browse files
Options
Downloads
Patches
Plain Diff
bim
parent
abde012d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lab1/README.md
+14
-16
14 additions, 16 deletions
lab1/README.md
with
14 additions
and
16 deletions
lab1/README.md
+
14
−
16
View file @
e23be2c3
...
...
@@ -23,26 +23,22 @@ it to neighbours instead on manually entering an ip.
### Server
#### Root Server
To lauch the server to which you wish to send commands using the client you need to do
```
bash
go server.go
--config
=
neighbor-x.yaml
--root
```
#### Normal Server
To launch the other server you need to run the following command:
```
bash
go server.go
--config
=
neighbor-x.yaml
```
#### Note
-
It is possible to print transactions from the cli on the server
-
It is possible to directly fake a transaction from the cli on the server
-
All these functionalities can be triggered by the client, but fake for example will not ask the client for anything
except the id of the transaction to fake
### Functionalities
-
Able to create a transaction from the client and then request to root server to broadcast by wave to all the other servers
-
Able to send a rate request from client to root server then broadcast by wave to all the other servers
-
Able to fake a transaction on a node by using its command line
-
Able to print all local transaction from any server or client on a node by using its command line
-
All functionalities have been implemented and work with the current network without problems.
### Object Storage Module
...
...
@@ -50,7 +46,8 @@ go server.go --config=neighbor-x.yaml
-
Go 1.14
-
Azure CLI
-
Azure Storage Account configured (like
<https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-go>
)
-
Azure Storage Account configured (
like
<https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-go>
)
-
For testing you need to change the "hepiadistributedsystems" by the storage account name
```
go
azureCreds
:=
InitAzureCredentials
(
"hepiadistributedsystems"
)
...
...
@@ -123,7 +120,8 @@ Initialize a container with the given containerName and returns it (to create/de
func
InitializeBlob
(
blobName
string
,
azureCreds
AzureCredentials
,
containerName
string
,
containerClient
azblob
.
ContainerClient
)
azblob
.
BlockBlobClient
```
Initialize a blob/file (for upload/download) with the given blobName and returns an object to interact with it (write/read data).
Initialize a blob/file (for upload/download) with the given blobName and returns an object to interact with it (
write/read data).
```
go
func
ListBlobs
(
blob
Blob
)
...
...
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
register
or
sign in
to comment