Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dgraph
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
dgraph
Commits
3a70965d
Commit
3a70965d
authored
9 years ago
by
Ashwin
Browse files
Options
Downloads
Patches
Plain Diff
Formatting to limit line length to 100
parent
351da169
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/loader/main.go
+4
-2
4 additions, 2 deletions
server/loader/main.go
server/uidassigner/main.go
+5
-3
5 additions, 3 deletions
server/uidassigner/main.go
with
9 additions
and
5 deletions
server/loader/main.go
+
4
−
2
View file @
3a70965d
...
...
@@ -36,8 +36,10 @@ var glog = x.Log("loader_main")
var
rdfGzips
=
flag
.
String
(
"rdfgzips"
,
""
,
"Comma separated gzip files containing RDF data"
)
var
instanceIdx
=
flag
.
Uint64
(
"instanceIdx"
,
0
,
"Only pick entities, where Fingerprint % numInstance == instanceIdx."
)
var
numInstances
=
flag
.
Uint64
(
"numInstances"
,
1
,
"Total number of instances among which uid assigning is shared"
)
var
instanceIdx
=
flag
.
Uint64
(
"instanceIdx"
,
0
,
"Only pick entities, where Fingerprint % numInstance == instanceIdx."
)
var
numInstances
=
flag
.
Uint64
(
"numInstances"
,
1
,
"Total number of instances among which uid assigning is shared"
)
var
postingDir
=
flag
.
String
(
"postings"
,
""
,
"Directory to store posting lists"
)
var
uidDir
=
flag
.
String
(
"uidDir"
,
""
,
"Directory to read UID posting lists"
)
var
cpuprofile
=
flag
.
String
(
"cpuprofile"
,
""
,
"write cpu profile to file"
)
...
...
This diff is collapsed.
Click to expand it.
server/uidassigner/main.go
+
5
−
3
View file @
3a70965d
...
...
@@ -20,8 +20,10 @@ var glog = x.Log("uidassigner_main")
var
rdfGzips
=
flag
.
String
(
"rdfgzips"
,
""
,
"Comma separated gzip files containing RDF data"
)
var
instanceIdx
=
flag
.
Uint64
(
"instanceIdx"
,
0
,
"Only pick entities, where Fingerprint % numInstance == instanceIdx."
)
var
numInstances
=
flag
.
Uint64
(
"numInstances"
,
1
,
"Total number of instances among which uid assigning is shared"
)
var
instanceIdx
=
flag
.
Uint64
(
"instanceIdx"
,
0
,
"Only pick entities, where Fingerprint % numInstance == instanceIdx."
)
var
numInstances
=
flag
.
Uint64
(
"numInstances"
,
1
,
"Total number of instances among which uid assigning is shared"
)
var
uidDir
=
flag
.
String
(
"uidpostings"
,
""
,
"Directory to store xid to uid posting lists"
)
var
cpuprofile
=
flag
.
String
(
"cpuprofile"
,
""
,
"write cpu profile to file"
)
var
numcpu
=
flag
.
Int
(
"numCpu"
,
runtime
.
NumCPU
(),
"Number of cores to be used by the process"
)
...
...
@@ -49,7 +51,7 @@ func main() {
glog
.
WithField
(
"instanceIdx"
,
*
instanceIdx
)
.
WithField
(
"numInstances"
,
*
numInstances
)
.
Info
(
"Only those XIDs w
hich satisfy
FP(xid) % numInstance == instanceIdx will be given UID"
)
Info
(
"Only those XIDs w
ith
FP(xid) % numInstance == instanceIdx will be given UID"
)
if
len
(
*
rdfGzips
)
==
0
{
glog
.
Fatal
(
"No RDF GZIP files specified"
)
...
...
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