scbi_mapreduce 0.0.40 → 0.0.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/{README.rdoc → README.md} +0 -0
  6. data/Rakefile +8 -28
  7. data/lib/scbi_mapreduce.rb +2 -10
  8. data/lib/scbi_mapreduce/main_worker.rb +20 -6
  9. data/lib/scbi_mapreduce/manager.rb +4 -0
  10. data/lib/scbi_mapreduce/version.rb +3 -0
  11. data/lib/scbi_mapreduce/work_manager.rb +22 -0
  12. data/lib/scbi_mapreduce/worker_launcher.rb +34 -0
  13. data/scbi_mapreduce.gemspec +27 -0
  14. data/skeleton/.DS_Store +0 -0
  15. data/skeleton/dummy_calcs/.DS_Store +0 -0
  16. data/skeleton/old/dummy_calculations/README.txt +25 -0
  17. data/skeleton/old/dummy_calculations/lib/calculations.rb +37 -0
  18. data/skeleton/old/dummy_calculations/lib/thread_pool.rb +107 -0
  19. data/skeleton/old/dummy_calculations/main.rb +59 -0
  20. data/skeleton/old/dummy_calculations/my_worker.rb +56 -0
  21. data/skeleton/old/dummy_calculations/my_worker_manager.rb +52 -0
  22. data/skeleton/old/dummy_calculations/threads_implementation.rb +29 -0
  23. data/skeleton/old/sequences_blast/README.txt +31 -0
  24. data/{test/drb_test/main.rb → skeleton/old/sequences_blast/launch_only_workers.rb} +6 -10
  25. data/skeleton/old/sequences_blast/lib/db/mids.fasta +64 -0
  26. data/skeleton/old/sequences_blast/lib/db/mids.fasta.nhr +0 -0
  27. data/skeleton/old/sequences_blast/lib/db/mids.fasta.nin +0 -0
  28. data/skeleton/old/sequences_blast/lib/db/mids.fasta.nog +0 -0
  29. data/skeleton/old/sequences_blast/lib/db/mids.fasta.nsd +48 -0
  30. data/skeleton/old/sequences_blast/lib/db/mids.fasta.nsi +0 -0
  31. data/skeleton/old/sequences_blast/lib/db/mids.fasta.nsq +0 -0
  32. data/skeleton/old/sequences_blast/lib/find_mids.rb +134 -0
  33. data/skeleton/old/sequences_blast/lib/thread_pool.rb +107 -0
  34. data/skeleton/old/sequences_blast/linear_implementation.rb +86 -0
  35. data/skeleton/old/sequences_blast/logs/worker0_osiris-2.local_log.txt +13 -0
  36. data/skeleton/old/sequences_blast/logs/worker1_osiris-2.local_log.txt +13 -0
  37. data/skeleton/old/sequences_blast/main.rb +63 -0
  38. data/skeleton/old/sequences_blast/my_worker.rb +58 -0
  39. data/skeleton/old/sequences_blast/my_worker_manager.rb +60 -0
  40. data/skeleton/old/sequences_blast/results.fastq +3996 -0
  41. data/skeleton/old/sequences_blast/test_threads.rb +32 -0
  42. data/skeleton/old/sequences_blast/threads_implementation.rb +108 -0
  43. data/skeleton/remove_mids/lib/db/mids.fasta.nhr +0 -0
  44. data/skeleton/remove_mids/lib/db/mids.fasta.nin +0 -0
  45. data/skeleton/remove_mids/lib/db/mids.fasta.nog +0 -0
  46. data/skeleton/remove_mids/lib/db/mids.fasta.nsd +120 -0
  47. data/skeleton/remove_mids/lib/db/mids.fasta.nsi +0 -0
  48. data/skeleton/remove_mids/lib/db/mids.fasta.nsq +0 -0
  49. data/{.gemtest → skeleton/remove_mids/results.fastq558292} +0 -0
  50. data/skeleton/remove_mids/results.fastq662870 +3996 -0
  51. data/skeleton/simple/launch_only_workers.rb +29 -0
  52. metadata +102 -110
  53. data/History.txt +0 -93
  54. data/Manifest.txt +0 -47
  55. data/PostInstall.txt +0 -7
  56. data/script/console +0 -10
  57. data/script/destroy +0 -14
  58. data/script/generate +0 -14
  59. data/test/drb_test/my_worker.rb +0 -36
  60. data/test/drb_test/my_worker_manager.rb +0 -41
  61. data/test/drb_test/scbi_drb_checkpoint +0 -1
  62. data/test/drb_test/scbi_mapreduce_checkpoint +0 -1
  63. data/test/test_helper.rb +0 -3
  64. data/test/test_scbi_drb.rb +0 -11
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $: << File.dirname(__FILE__)
4
+
5
+ require "logger"
6
+
7
+ $: << '/Users/dariogf/progs/ruby/gems/scbi_mapreduce/lib'
8
+
9
+ require 'scbi_mapreduce'
10
+ require 'my_worker_manager'
11
+
12
+
13
+ $LOG = Logger.new(STDOUT)
14
+ $LOG.datetime_format = "%Y-%m-%d %H:%M:%S"
15
+
16
+ ip='10.247.255.5'
17
+ port = 50000
18
+ workers = 8
19
+
20
+ custom_worker_file = File.join(File.dirname(__FILE__),'my_worker.rb')
21
+
22
+ $LOG.info 'Starting server'
23
+
24
+
25
+ worker_launcher = ScbiMapreduce::WorkerLauncher.new(ip,port, workers, custom_worker_file, STDOUT)
26
+ worker_launcher.launch_workers_and_wait
27
+
28
+ # launch processor server
29
+ $LOG.info 'Closing workers'
metadata CHANGED
@@ -1,96 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scbi_mapreduce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
5
- prerelease:
4
+ version: 0.0.45
6
5
  platform: ruby
7
6
  authors:
8
- - Dario Guerrero
7
+ - dariogf
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-09-16 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: eventmachine
14
+ name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 0.12.0
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: 0.12.0
30
- - !ruby/object:Gem::Dependency
31
- name: json
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
19
+ version: '1.7'
20
+ type: :development
39
21
  prerelease: false
40
22
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
23
  requirements:
43
- - - ! '>='
24
+ - - "~>"
44
25
  - !ruby/object:Gem::Version
45
- version: '0'
26
+ version: '1.7'
46
27
  - !ruby/object:Gem::Dependency
47
- name: rdoc
28
+ name: rake
48
29
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
30
  requirements:
51
- - - ~>
31
+ - - "~>"
52
32
  - !ruby/object:Gem::Version
53
- version: '4.0'
33
+ version: '10.0'
54
34
  type: :development
55
35
  prerelease: false
56
36
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
37
  requirements:
59
- - - ~>
38
+ - - "~>"
60
39
  - !ruby/object:Gem::Version
61
- version: '4.0'
40
+ version: '10.0'
62
41
  - !ruby/object:Gem::Dependency
63
- name: newgem
42
+ name: eventmachine
64
43
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
44
  requirements:
67
- - - ! '>='
45
+ - - ">="
68
46
  - !ruby/object:Gem::Version
69
- version: 1.5.3
70
- type: :development
47
+ version: 0.12.0
48
+ type: :runtime
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
- - - ! '>='
52
+ - - ">="
76
53
  - !ruby/object:Gem::Version
77
- version: 1.5.3
54
+ version: 0.12.0
78
55
  - !ruby/object:Gem::Dependency
79
- name: hoe
56
+ name: json
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
- - - ~>
59
+ - - ">="
84
60
  - !ruby/object:Gem::Version
85
- version: '3.6'
86
- type: :development
61
+ version: '0'
62
+ type: :runtime
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
- - - ~>
66
+ - - ">="
92
67
  - !ruby/object:Gem::Version
93
- version: '3.6'
68
+ version: '0'
94
69
  description: scbi_mapreduce brings parallel and distributed computing capabilities
95
70
  to your code, with a very easy to use framework that allows you to exploit your
96
71
  clustered or cloud computational resources.
@@ -99,90 +74,107 @@ email:
99
74
  executables:
100
75
  - scbi_mapreduce
101
76
  extensions: []
102
- extra_rdoc_files:
103
- - History.txt
104
- - Manifest.txt
105
- - PostInstall.txt
106
- - README.rdoc
107
- - skeleton/simple/README.txt
108
- - skeleton/remove_mids/README.txt
109
- - skeleton/dummy_calcs/README.txt
77
+ extra_rdoc_files: []
110
78
  files:
111
- - History.txt
79
+ - ".gitignore"
80
+ - Gemfile
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - bin/scbi_mapreduce
85
+ - lib/scbi_mapreduce.rb
112
86
  - lib/scbi_mapreduce/error_handler.rb
87
+ - lib/scbi_mapreduce/launcher.sh
113
88
  - lib/scbi_mapreduce/main_worker.rb
114
89
  - lib/scbi_mapreduce/manager.rb
90
+ - lib/scbi_mapreduce/version.rb
115
91
  - lib/scbi_mapreduce/work_manager.rb
116
92
  - lib/scbi_mapreduce/worker.rb
117
- - lib/scbi_mapreduce/launcher.sh
118
- - lib/scbi_mapreduce/zlib_serializer.rb
119
93
  - lib/scbi_mapreduce/worker_launcher.rb
120
- - lib/scbi_mapreduce.rb
121
- - Manifest.txt
122
- - PostInstall.txt
123
- - Rakefile
124
- - README.rdoc
125
- - script/console
126
- - script/destroy
127
- - script/generate
128
- - test/drb_test/main.rb
129
- - test/drb_test/my_worker.rb
130
- - test/drb_test/my_worker_manager.rb
131
- - test/drb_test/scbi_drb_checkpoint
132
- - test/drb_test/scbi_mapreduce_checkpoint
133
- - test/test_helper.rb
134
- - test/test_scbi_drb.rb
135
- - bin/scbi_mapreduce
136
- - skeleton/simple/main.rb
137
- - skeleton/simple/my_worker.rb
138
- - skeleton/simple/my_worker_manager.rb
139
- - skeleton/simple/README.txt
94
+ - lib/scbi_mapreduce/zlib_serializer.rb
95
+ - scbi_mapreduce.gemspec
96
+ - skeleton/.DS_Store
97
+ - skeleton/dummy_calcs/.DS_Store
98
+ - skeleton/dummy_calcs/README.txt
99
+ - skeleton/dummy_calcs/lib/calculations.rb
100
+ - skeleton/dummy_calcs/lib/thread_pool.rb
101
+ - skeleton/dummy_calcs/linear_implementation.rb
102
+ - skeleton/dummy_calcs/main.rb
103
+ - skeleton/dummy_calcs/my_worker.rb
104
+ - skeleton/dummy_calcs/my_worker_manager.rb
105
+ - skeleton/dummy_calcs/threads_implementation.rb
106
+ - skeleton/old/dummy_calculations/README.txt
107
+ - skeleton/old/dummy_calculations/lib/calculations.rb
108
+ - skeleton/old/dummy_calculations/lib/thread_pool.rb
109
+ - skeleton/old/dummy_calculations/main.rb
110
+ - skeleton/old/dummy_calculations/my_worker.rb
111
+ - skeleton/old/dummy_calculations/my_worker_manager.rb
112
+ - skeleton/old/dummy_calculations/threads_implementation.rb
113
+ - skeleton/old/sequences_blast/README.txt
114
+ - skeleton/old/sequences_blast/launch_only_workers.rb
115
+ - skeleton/old/sequences_blast/lib/db/mids.fasta
116
+ - skeleton/old/sequences_blast/lib/db/mids.fasta.nhr
117
+ - skeleton/old/sequences_blast/lib/db/mids.fasta.nin
118
+ - skeleton/old/sequences_blast/lib/db/mids.fasta.nog
119
+ - skeleton/old/sequences_blast/lib/db/mids.fasta.nsd
120
+ - skeleton/old/sequences_blast/lib/db/mids.fasta.nsi
121
+ - skeleton/old/sequences_blast/lib/db/mids.fasta.nsq
122
+ - skeleton/old/sequences_blast/lib/find_mids.rb
123
+ - skeleton/old/sequences_blast/lib/thread_pool.rb
124
+ - skeleton/old/sequences_blast/linear_implementation.rb
125
+ - skeleton/old/sequences_blast/logs/worker0_osiris-2.local_log.txt
126
+ - skeleton/old/sequences_blast/logs/worker1_osiris-2.local_log.txt
127
+ - skeleton/old/sequences_blast/main.rb
128
+ - skeleton/old/sequences_blast/my_worker.rb
129
+ - skeleton/old/sequences_blast/my_worker_manager.rb
130
+ - skeleton/old/sequences_blast/results.fastq
131
+ - skeleton/old/sequences_blast/test_threads.rb
132
+ - skeleton/old/sequences_blast/threads_implementation.rb
133
+ - skeleton/remove_mids/README.txt
140
134
  - skeleton/remove_mids/launch_only_workers.rb
141
135
  - skeleton/remove_mids/lib/db/mids.fasta
136
+ - skeleton/remove_mids/lib/db/mids.fasta.nhr
137
+ - skeleton/remove_mids/lib/db/mids.fasta.nin
138
+ - skeleton/remove_mids/lib/db/mids.fasta.nog
139
+ - skeleton/remove_mids/lib/db/mids.fasta.nsd
140
+ - skeleton/remove_mids/lib/db/mids.fasta.nsi
141
+ - skeleton/remove_mids/lib/db/mids.fasta.nsq
142
142
  - skeleton/remove_mids/lib/find_mids.rb
143
143
  - skeleton/remove_mids/lib/global_match.rb
144
144
  - skeleton/remove_mids/linear_implementation.rb
145
145
  - skeleton/remove_mids/main.rb
146
146
  - skeleton/remove_mids/my_worker.rb
147
147
  - skeleton/remove_mids/my_worker_manager.rb
148
- - skeleton/remove_mids/README.txt
149
- - skeleton/dummy_calcs/lib/calculations.rb
150
- - skeleton/dummy_calcs/lib/thread_pool.rb
151
- - skeleton/dummy_calcs/linear_implementation.rb
152
- - skeleton/dummy_calcs/main.rb
153
- - skeleton/dummy_calcs/my_worker.rb
154
- - skeleton/dummy_calcs/my_worker_manager.rb
155
- - skeleton/dummy_calcs/README.txt
156
- - skeleton/dummy_calcs/threads_implementation.rb
157
- - .gemtest
158
- homepage: http://www.scbi.uma.es/downloads
159
- licenses: []
160
- post_install_message: PostInstall.txt
161
- rdoc_options:
162
- - --main
163
- - README.rdoc
148
+ - skeleton/remove_mids/results.fastq558292
149
+ - skeleton/remove_mids/results.fastq662870
150
+ - skeleton/simple/README.txt
151
+ - skeleton/simple/launch_only_workers.rb
152
+ - skeleton/simple/main.rb
153
+ - skeleton/simple/my_worker.rb
154
+ - skeleton/simple/my_worker_manager.rb
155
+ homepage: ''
156
+ licenses:
157
+ - MIT
158
+ metadata: {}
159
+ post_install_message:
160
+ rdoc_options: []
164
161
  require_paths:
165
162
  - lib
166
163
  required_ruby_version: !ruby/object:Gem::Requirement
167
- none: false
168
164
  requirements:
169
- - - ! '>='
165
+ - - ">="
170
166
  - !ruby/object:Gem::Version
171
167
  version: '0'
172
168
  required_rubygems_version: !ruby/object:Gem::Requirement
173
- none: false
174
169
  requirements:
175
- - - ! '>='
170
+ - - ">="
176
171
  - !ruby/object:Gem::Version
177
172
  version: '0'
178
173
  requirements: []
179
- rubyforge_project: scbi_mapreduce
180
- rubygems_version: 1.8.24
174
+ rubyforge_project:
175
+ rubygems_version: 2.4.4
181
176
  signing_key:
182
- specification_version: 3
177
+ specification_version: 4
183
178
  summary: scbi_mapreduce brings parallel and distributed computing capabilities to
184
- your code, with a very easy to use framework that allows you to exploit your clustered
185
- or cloud computational resources.
186
- test_files:
187
- - test/test_helper.rb
188
- - test/test_scbi_drb.rb
179
+ your code.
180
+ test_files: []
@@ -1,93 +0,0 @@
1
- === 0.0.40 2013-09-05
2
-
3
- Generation of additional statistics, write, read and working times
4
-
5
- === 0.0.39 2012-10-01
6
-
7
- Sleep on SIGCONT to solve wake up issue with PBS
8
-
9
- === 0.0.38 2012-04-13
10
-
11
- Automatic checkpointing improvements
12
-
13
- === 0.0.37 2011-10-20
14
-
15
- Memory management improvement
16
-
17
- === 0.0.36 2011-10-14
18
-
19
- Automatically search for a valid network if a preffered one is not provided
20
-
21
- === 0.0.35 2011-07-07
22
-
23
- Change method to retrieve a list of available ips
24
-
25
- === 0.0.34 2011-07-07
26
-
27
- Close ssh after worker creation with nohup
28
-
29
- === 0.0.33 2011-06-23
30
-
31
- Changed worker launching method to avoid process count overkill
32
-
33
- === 0.0.32 2011-06-20
34
-
35
- Removed ruby 1.9.2 requisite
36
-
37
- === 0.0.31 2011-06-17
38
-
39
- Total connected workers stats
40
-
41
- === 0.0.30 2011-06-17
42
-
43
- Report local workers
44
-
45
- === 0.0.29 2011-06-13
46
-
47
- First rubygems release
48
-
49
- === 0.0.21 2011-05-19
50
-
51
- added zlib serialization
52
-
53
- === 0.0.20 2011-05-18
54
-
55
- Own serializer
56
-
57
- === 0.0.19 2011-05-11
58
-
59
- Added dummy_calculations skeleton
60
-
61
- === 0.0.18 2011-05-11
62
-
63
- Added fibo skeleton
64
-
65
- === 0.0.17 2011-05-09
66
-
67
- New sequence Skeleton
68
-
69
- === 0.0.16 2011-05-05
70
-
71
- Automatically create log directory
72
-
73
- === 0.0.4 2010-08-26
74
-
75
- * 1 minor fix:
76
- * add initial config interchange between server and workers
77
-
78
-
79
- === 0.0.3 2010-08-24
80
-
81
- * 1 minor fix:
82
- * changed start_worker from post_init
83
-
84
-
85
- === 0.0.2 2010-08-06
86
-
87
- * 1 minor fix:
88
- * changed logs names
89
-
90
- === 0.0.1 2010-06-11
91
-
92
- * 1 major enhancement:
93
- * Initial release
@@ -1,47 +0,0 @@
1
- History.txt
2
- lib/scbi_mapreduce/error_handler.rb
3
- lib/scbi_mapreduce/main_worker.rb
4
- lib/scbi_mapreduce/manager.rb
5
- lib/scbi_mapreduce/work_manager.rb
6
- lib/scbi_mapreduce/worker.rb
7
- lib/scbi_mapreduce/launcher.sh
8
- lib/scbi_mapreduce/zlib_serializer.rb
9
- lib/scbi_mapreduce/worker_launcher.rb
10
- lib/scbi_mapreduce.rb
11
- Manifest.txt
12
- PostInstall.txt
13
- Rakefile
14
- README.rdoc
15
- script/console
16
- script/destroy
17
- script/generate
18
- test/drb_test/logs
19
- test/drb_test/main.rb
20
- test/drb_test/my_worker.rb
21
- test/drb_test/my_worker_manager.rb
22
- test/drb_test/scbi_drb_checkpoint
23
- test/drb_test/scbi_mapreduce_checkpoint
24
- test/test_helper.rb
25
- test/test_scbi_drb.rb
26
- bin/scbi_mapreduce
27
- skeleton/simple/main.rb
28
- skeleton/simple/my_worker.rb
29
- skeleton/simple/my_worker_manager.rb
30
- skeleton/simple/README.txt
31
- skeleton/remove_mids/launch_only_workers.rb
32
- skeleton/remove_mids/lib/db/mids.fasta
33
- skeleton/remove_mids/lib/find_mids.rb
34
- skeleton/remove_mids/lib/global_match.rb
35
- skeleton/remove_mids/linear_implementation.rb
36
- skeleton/remove_mids/main.rb
37
- skeleton/remove_mids/my_worker.rb
38
- skeleton/remove_mids/my_worker_manager.rb
39
- skeleton/remove_mids/README.txt
40
- skeleton/dummy_calcs/lib/calculations.rb
41
- skeleton/dummy_calcs/lib/thread_pool.rb
42
- skeleton/dummy_calcs/linear_implementation.rb
43
- skeleton/dummy_calcs/main.rb
44
- skeleton/dummy_calcs/my_worker.rb
45
- skeleton/dummy_calcs/my_worker_manager.rb
46
- skeleton/dummy_calcs/README.txt
47
- skeleton/dummy_calcs/threads_implementation.rb